Beispiel #1
0
 public IType Visit(TypeInferrerVisitor inferrer, PrimitiveNode literal)
 {
     return(new Primitive(SymbolHelper.GetType(inferrer.SymbolTable, literal.Literal), inferrer.SymbolTable.CurrentScope));
 }
 public ISymbol Visit(SymbolResolverVisitor visitor, PrimitiveNode literal)
 {
     return(new Primitive(SymbolHelper.GetType(visitor.SymbolTable, literal.Literal), visitor.SymbolTable.CurrentScope));
 }
 public CheckedType Visit(TypeCheckerVisitor checker, PrimitiveNode literal)
 {
     return(new CheckedType(new Primitive(SymbolHelper.GetType(checker.SymbolTable, literal.Literal), checker.SymbolTable.CurrentScope)));
 }