Chromium Code Reviews| Index: frog/leg/typechecker.dart |
| diff --git a/frog/leg/typechecker.dart b/frog/leg/typechecker.dart |
| index 52b39c5919df295c6ec1c45d19e4f58c1b931958..ee9f80877519714815d6531b87406a1fc9289e64 100644 |
| --- a/frog/leg/typechecker.dart |
| +++ b/frog/leg/typechecker.dart |
| @@ -272,6 +272,11 @@ class TypeCheckerVisitor implements Visitor<Type> { |
| return bodyType.join(StatementType.NOT_RETURNING); |
| } |
| + Type visitFunctionDeclaration(FunctionDeclaration node) { |
| + analyze(node.function); |
|
ngeoffray
2012/02/28 17:11:51
Add a TODO that this is not the right thing to ret
floitsch
2012/02/28 17:35:21
apparently not.
|
| + return StatementType.NOT_RETURNING; |
| + } |
| + |
| Type visitFunctionExpression(FunctionExpression node) { |
| Type type; |
| Type returnType; |