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); }
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; }