public TypedefDescription(ATypedefDecl typeDef)
 {
     Name = ((ANamedType) typeDef.GetName()).AsString();
     Snapshot = typeDef;
     typeDef.Parent().RemoveChild(typeDef);
     Position = TextPoint.FromCompilerCoords(typeDef.GetToken());
     realType = typeDef.GetType();
 }
예제 #2
0
 public override void CaseATypedefDecl(ATypedefDecl node)
 {
     InATypedefDecl(node);
     if (node.GetName() != null)
     {
         node.GetName().Apply(this);
     }
     if (node.GetType() != null)
     {
         node.GetType().Apply(this);
     }
     if (node.GetToken() != null)
     {
         node.GetToken().Apply(this);
     }
     if (node.GetStatic() != null)
     {
         node.GetStatic().Apply(this);
     }
     if (node.GetVisibilityModifier() != null)
     {
         node.GetVisibilityModifier().Apply(this);
     }
     OutATypedefDecl(node);
 }
예제 #3
0
 public override void OutATypedefDecl(ATypedefDecl node)
 {
     if (node.GetVisibilityModifier() is AProtectedVisibilityModifier)
         errors.Add(new ErrorCollection.Error(node.GetToken(), LocRM.GetString("ErrorText181")));
 }