Exemplo n.º 1
0
        public EvaluationVisitor(NObjectiveAST.TranslationUnit translationUnit)
        {
            TranslationUnit = new TranslationUnit();
            Types.Push(new Dictionary <string, LanguageType>());
            TypeAliases.Push(new Dictionary <string, LanguageType>());

            Scope.Push(TranslationUnit);
            ASTScope.Push(translationUnit);

            translationUnit.AcceptVisitor(this);
        }
Exemplo n.º 2
0
 public static TranslationUnit GetTranslationUnit(NObjectiveAST.TranslationUnit translationUnit)
 {
     return(new EvaluationVisitor(translationUnit).TranslationUnit);
 }