public override void VisitTypeDecl(TypeDecl x) { var type = new SourceTypeSymbol(_currentFile, x); x.SetProperty(type); // remember bound function symbol _tables._declaredtypes.Add(type); if (!x.IsConditional) { _tables._types.Add(x.MakeQualifiedName(), type); } // base.VisitTypeDecl(x); }
public override void VisitTypeDecl(TypeDecl x) { var type = (x is AnonymousTypeDecl) ? new SourceAnonymousTypeSymbol(_currentFile, (AnonymousTypeDecl)x) : new SourceTypeSymbol(_currentFile, x); x.SetProperty(type); // remember bound type symbol _currentFile.ContainedTypes.Add(type); // _containerStack.Push(type); base.VisitTypeDecl(x); _containerStack.Pop(); }