Skip to content

v0.1.9

Choose a tag to compare

@gmpassos gmpassos released this 15 Apr 06:26
· 479 commits to master since this release
e3edcbd
  • ASTExpressionListLiteral:

    • resolveType: updated to return ASTTypeArray of the specified type or deduced common element type.
    • children: fixed to include type correctly.
  • ASTStatementVariableDeclaration:

    • Constructor enhanced to handle ASTExpressionListLiteral values with type adjustments or cast exceptions.
  • ASTStatementForEach:

    • Added variableType field.
    • Constructor updated to accept variableType.
  • ASTType:

    • Added commonType method to find common compatible type between two types.
  • ASTTypeArray:

    • toValue: improved to cast ASTValueArray to correct generic type if needed.
  • ASTValueArray:

    • Added cast method to convert to another generic type with optional component type.
  • Dart grammar (dart_grammar.dart):

    • statementForEach parser updated to parse explicit variable type before variable name.
    • expressionListLiteral parser updated to infer common element type if not specified.
  • Java11 grammar (java11_grammar.dart):

    • statementForEach parser 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.