Exemplo n.º 1
0
        public TypeDenoter VisitSimpleTypeDenoter(SimpleTypeDenoter ast, Void arg)
        {
            Declaration binding = ast.Identifier.Visit(this, null);

            if (binding is TypeDeclaration decl)
            {
                return(decl.Type);
            }
            ReportUndeclaredOrError(binding, ast.Identifier, "\"%\" is not a type identifier");
            return(StandardEnvironment.ErrorType);
        }
Exemplo n.º 2
0
 public int VisitSimpleTypeDenoter(SimpleTypeDenoter ast, Frame frame)
 {
     return(0);
 }