示例#1
0
        public override void VisitTypeAbbreviationDeclaration(ITypeAbbreviationDeclaration decl)
        {
            var typePart = decl.TypePartKind == PartKind.Class
        ? (TypePart) new TypeAbbreviationOrDeclarationPart(decl, Builder)
        : new StructTypeAbbreviationOrDeclarationPart(decl, Builder);

            ProcessPart(typePart);

            var declaredName = decl.AbbreviatedTypeOrUnionCase?.GetSourceName();

            if (declaredName != SharedImplUtil.MISSING_DECLARATION_NAME)
            {
                Builder.AddDeclaredMemberName(declaredName);
            }
        }
示例#2
0
 public override void VisitTypeAbbreviationDeclaration(ITypeAbbreviationDeclaration decl)
 {
     Builder.StartPart(new HiddenTypePart(decl, Builder));
     Builder.EndPart();
 }
 public TypeAbbreviationOrDeclarationPart([NotNull] ITypeAbbreviationDeclaration declaration,
                                          [NotNull] ICacheBuilder cacheBuilder) : base(declaration, cacheBuilder)
 {
 }