in Backend/Core/ForTea.Core/Services/CodeStructure/T4CSharpCodeStructureDeclaredElement.cs [26:59]
public override IFileStructureAspect GetFileStructureAspect()
=> _aspects;
public override IGotoFileMemberAspect GetGotoMemberAspect()
=> _aspects;
public override IMemberNavigationAspect GetMemberNavigationAspect()
=> _aspects;
public T4CSharpCodeStructureDeclaredElement(
[NotNull] CodeStructureElement parentElement,
[NotNull] IDeclaration declaration,
[NotNull] CSharpCodeStructureProcessingState state
)
: base(parentElement, declaration)
{
IDeclaredElement declaredElement = declaration.DeclaredElement;
InitiallyExpanded = true;
if (declaredElement != null && state.Options.BuildInheritanceInformation)
{
InheritanceInformation = InheritanceInformation.FromDeclaredElement(declaredElement);
if (InheritanceInformation != null)
{
if (parentElement is T4CSharpCodeStructureDeclaredElement structureDeclaredElement)
structureDeclaredElement.ChildrenWithInheritance = true;
}
}
_parentRegion = state.Regions.TryPeek();
if (declaredElement != null)
_aspects = new T4CSharpCodeStructureAspects(this, declaration);
}