Some initial work on the type checker for QML/JS.

This commit is contained in:
Roberto Raggi
2010-01-26 14:53:11 +01:00
parent 1e6a0523a1
commit ab8c19f2f8
5 changed files with 192 additions and 217 deletions

View File

@@ -82,6 +82,14 @@ AST::Program *Document::jsProgram() const
return cast<Program *>(_ast);
}
AST::ExpressionNode *Document::expression() const
{
if (_ast)
return _ast->expressionCast();
return 0;
}
AST::Node *Document::ast() const
{
return _ast;