Exemplo n.º 1
0
		public void ExecutePass(CompilationUnit unit)
		{
			VisitNode(unit);

			if (errorReport.HasErrors) return;

			// Now we register the single var declaration as type members (fields)
			// and ensure they are on the symbol table - sanity check
			FieldsVisitor visitor = new FieldsVisitor();
			visitor.VisitCompilationUnit(unit);
		}
Exemplo n.º 2
0
        public void ExecutePass(CompilationUnit unit)
        {
            VisitNode(unit);

            if (errorReport.HasErrors)
            {
                return;
            }

            // Now we register the single var declaration as type members (fields)
            // and ensure they are on the symbol table - sanity check
            FieldsVisitor visitor = new FieldsVisitor();

            visitor.VisitCompilationUnit(unit);
        }