src/compiler/SemanticAnalysis.h
changeset 233 bbb498ccb4ac
parent 232 2b8512340180
child 234 26e3035cdffc
     1.1 --- a/src/compiler/SemanticAnalysis.h	Sat Dec 22 19:48:43 2012 -0800
     1.2 +++ b/src/compiler/SemanticAnalysis.h	Sat Dec 22 23:18:57 2012 -0800
     1.3 @@ -48,6 +48,7 @@
     1.4      void visitBlockStatement(BlockStatement *node);
     1.5      void visitExpressionStatement(ExpressionStatement *node);
     1.6      void visitReturnStatement(ReturnStatement *node);
     1.7 +    void visitEnumStatement(EnumStatement *node);
     1.8  
     1.9      void visitCallExpression(CallExpression *node);
    1.10      void visitNameProxy(NameProxy *name);
    1.11 @@ -66,7 +67,6 @@
    1.12  #if 0
    1.13      void visitFunctionTypeStatement(FunctionTypeStatement *node);
    1.14      void visitImportStatement(ImportStatement *node);
    1.15 -    void visitEnumStatement(EnumStatement *node);
    1.16      void visitStructureStatement(StructureStatement *node);
    1.17      void visitSwitchStatement(SwitchStatement *node);
    1.18  
    1.19 @@ -178,6 +178,7 @@
    1.20      Type *coercionType(TokenKind token, HIR *left, HIR *right);
    1.21      HLValue *lvalue(Expression *expr);
    1.22      void discharge(HIR *hir);
    1.23 +    HIR *typeFailure(const SourcePosition &pos, Handle<Type> from, Handle<Type> to);
    1.24  
    1.25      bool typeCheckArray(const SourcePosition &pos,
    1.26                          Handle<Type> argGiven,