Repository navigation
v0.1.7
-
CI:
.github/workflows/dart.yml: updatedactions/checkoutfrom v3 to v6 andcodecov/codecov-actionfrom v3 to v5.
-
apollovm.dart:- Exported new utility file
src/apollovm_utils.dart.
- Exported new utility file
-
apollovm_runner.dart:ApolloRunner:executeClassMethod: changed to async, added parameter normalization before execution.- Added
normalizeParametersmethod to normalize positional and named parameters against AST function declarations. executeFunction: added parameter normalization for top-level functions.- Improved parameter handling for function execution.
-
apollovm_utils.dart(new):- Added utilities for generic typed list conversion and case-insensitive map key lookup.
- Extensions on
Listfor typed list creation and onMapfor case-insensitive key lookup.
-
apollovm_ast_toplevel.dart:ASTFunctionDeclaration:- Added
normalizeParameters,normalizePositionalParameters, andnormalizeNamedParametersmethods to convert and normalize parameters according to function declarations.
- Added
- Added extension
IterableASTFunctionDeclarationExtensionwithresolveBestMatchBySignatureto select best matching function overload by parameter signature.
-
apollovm_ast_type.dart:ASTType:- Added
fromTypefactory to create ASTType from DartType. - Added
toASTValuemethod to convert native values to ASTValue according to type.
- Added
- Added
toASTValueoverrides in primitive and collection types (ASTTypeBool,ASTTypeNum,ASTTypeInt,ASTTypeDouble,ASTTypeString,ASTTypeNull,ASTTypeVoid,ASTTypeArray,ASTTypeArray2D,ASTTypeMap,ASTTypeFuture). - Added static
fromTypemethods forASTTypeArrayandASTTypeMapto create instances from Dart generic types. ASTTypeArrayandCoreClassList:- Added typed singleton instances for common generic types (e.g.,
List<String>,List<int>, etc.). - Added factory constructors and
fromTypemethods to resolve types generically.
- Added typed singleton instances for common generic types (e.g.,
ASTTypeMap:- Added
fromTypemethod for common map generic types.
- Added
ASTTypeFuture:- Added
toASTValueoverride to handle conversion from native or future values.
- Added
-
apollovm_ast_value.dart:ASTValue.fromfactory:- Added support for
ASTTypeBoolto createASTValueBool.
- Added support for
-
apollovm_core_base.dart:ApolloVMCore.getClass:- Added optional
genericsparameter. Listclass resolution now usesCoreClassList.fromTypewith generic type.
- Added optional
CoreClassList:- Converted to generic class
CoreClassList<T>. - Added typed singleton instances for common generic types.
- Added
fromTypestatic method to resolve generic list classes. - Constructor updated to accept generic type and resolve
ASTTypeArrayaccordingly.
- Converted to generic class
-
wasm_runner.dart:ApolloRunnerWasm:- Added parameter normalization before calling Wasm functions.
-
wasm_runtime.dart:- Added
ensureBooted()method andlastBootErrorgetter toWasmRuntimeinterface.
- Added
-
wasm_runtime_dart_html.dart,wasm_runtime_generic.dart,wasm_runtime_web.dart:- Implemented
ensureBooted()as no-op andlastBootErroras null.
- Implemented
-
wasm_runtime_io.dart:- Added boot logic with error capture.
- Implemented
ensureBooted()to call boot. - Added
lastBootErrorgetter.
-
Tests (
apollovm_languages_test_definition.dart):- Updated
_parseJsonListto return untypedListwithout generic type conversion. - Removed redundant generic list conversion helpers from test file.
- Updated tests to call
.toListOfType()extension for typed list checks.
- Updated
-
Tests (
apollovm_wasm_test.dart):- Added call to
wasmRuntime.ensureBooted()before checking support. - On unsupported runtime, print last boot error for diagnostics.
- Added call to