コード例 #1
0
        protected IOccurence CreateOccurence(NTriplesFileMemberData fileMemberData)
        {
            var localName = fileMemberData.Element as LocalName;

            if (localName != null)
            {
                localName.ScopeToMainFile = true;
            }

            var declaredElementOccurence = new DeclaredElementOccurence(
                fileMemberData.Element,
                new OccurencePresentationOptions
            {
                ContainerStyle = !(fileMemberData.Element is ITypeElement)
                                             ? fileMemberData.ContainerDisplayStyle
                                             : ContainerDisplayStyle.NoContainer,
                LocationStyle = GlobalLocationStyle.None
            });

            if (localName != null)
            {
                localName.ScopeToMainFile = false;
            }

            return(declaredElementOccurence);
        }
コード例 #2
0
        protected IOccurence CreateOccurence(NTriplesFileMemberData fileMemberData)
        {
            var localName = fileMemberData.Element as LocalName;
            if (localName != null)
            {
                localName.ScopeToMainFile = true;
            }

            var declaredElementOccurence = new DeclaredElementOccurence(
                fileMemberData.Element,
                new OccurencePresentationOptions
                    {
                        ContainerStyle = !(fileMemberData.Element is ITypeElement)
                                             ? fileMemberData.ContainerDisplayStyle
                                             : ContainerDisplayStyle.NoContainer,
                        LocationStyle = GlobalLocationStyle.None,
                        TextDisplayStyle = TextDisplayStyle.IdentifierAndContext
                    });

            if (localName != null)
            {
                localName.ScopeToMainFile = false;
            }

            return declaredElementOccurence;
        }