예제 #1
0
        public bool VisitTypedefNameDecl(TypedefNameDecl typedef)
        {
            if (!VisitDeclaration(typedef))
            {
                return(false);
            }

            return(typedef.Type.Visit(this, typedef.QualifiedType.Qualifiers));
        }
예제 #2
0
 private static Kind GetKind(Declaration item)
 {
     return(item switch
     {
         Namespace _ => Kind.Namespace,
         Enumeration _ => Kind.Enum,
         Function _ => Kind.Function,
         Class _ => Kind.Class,
         Template _ => Kind.Template,
         TypedefNameDecl _ => Kind.Typedef,
         Variable _ => Kind.Variable,
         Friend _ => Kind.Friend,
         Event _ => Kind.Event,
         _ => throw new System.ArgumentOutOfRangeException(nameof(item), "Unsupported type of declaration.")
     });
예제 #3
0
 public TypedefType(TypedefType type)
     : base(type)
 {
     Declaration = type.Declaration;
 }
예제 #4
0
 public TypedefType(TypedefNameDecl decl)
 {
     Declaration = decl;
 }
예제 #5
0
 public string VisitTypedefNameDecl(TypedefNameDecl typedef)
 {
     throw new NotImplementedException();
 }