Repository navigation
v0.1.9
-
ASTExpressionListLiteral:resolveType: updated to returnASTTypeArrayof the specified type or deduced common element type.children: fixed to includetypecorrectly.
-
ASTStatementVariableDeclaration:- Constructor enhanced to handle
ASTExpressionListLiteralvalues with type adjustments or cast exceptions.
- Constructor enhanced to handle
-
ASTStatementForEach:- Added
variableTypefield. - Constructor updated to accept
variableType.
- Added
-
ASTType:- Added
commonTypemethod to find common compatible type between two types.
- Added
-
ASTTypeArray:toValue: improved to castASTValueArrayto correct generic type if needed.
-
ASTValueArray:- Added
castmethod to convert to another generic type with optional component type.
- Added
-
Dart grammar (
dart_grammar.dart):statementForEachparser updated to parse explicit variable type before variable name.expressionListLiteralparser updated to infer common element type if not specified.
-
Java11 grammar (
java11_grammar.dart):statementForEachparser updated to parse explicit variable type before variable name.
-
Tests:
- Added Dart test for
findMax(List<int> numbers)function with multiple test cases including empty list handling.
- Added Dart test for