1 #ifndef __TAN_ANALYSIS_TYPE_CHECK_H__
2 #define __TAN_ANALYSIS_TYPE_CHECK_H__
4 #include "analysis/analysis_action.h"
5 #include "common/dependency_graph.h"
6 #include "ast/package.h"
14 class TokenizedSourceFile;
28 static bool CanImplicitlyConvert(
Type *from,
Type *to);
65 DECLARE_AST_VISITOR_IMPL(
If);
66 DECLARE_AST_VISITOR_IMPL(
VarDecl);
67 DECLARE_AST_VISITOR_IMPL(
ArgDecl);
68 DECLARE_AST_VISITOR_IMPL(
Return);
73 DECLARE_AST_VISITOR_IMPL(
Cast);
77 DECLARE_AST_VISITOR_IMPL(
Import);
87 DECLARE_AST_VISITOR_IMPL(
Loop);
91 void analyze_func_decl_prototype(
ASTBase *_p);
93 void analyze_func_body(
ASTBase *_p);
95 void analyze_function_call(
FunctionCall *p,
bool include_intrinsics);
Represent if-[else] or if-elif-[else] statements.
A generic representation of Intrinsic variables/functions.
Type is immutable once created. The exception is StructType. Its information is updated in multiple s...