Skip to content

Commit

Permalink
Reorganize fully implemented List and Iterable wappers, added Random …
Browse files Browse the repository at this point in the history
…wapper and MathTypes
  • Loading branch information
Noobware1 committed Mar 27, 2024
1 parent d2c8123 commit 1700dac
Show file tree
Hide file tree
Showing 11 changed files with 2,349 additions and 1,171 deletions.
1 change: 1 addition & 0 deletions lib/src/eval/compiler/reference.dart
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,7 @@ class IndexedReference implements Reference {
final result = _variable.invoke(ctx, '[]', [_index]);
_variable = result.target!;
_index = result.args[0];

return result.result;
}

Expand Down
1 change: 0 additions & 1 deletion lib/src/eval/runtime/ops/objects.dart
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ class InvokeDynamic implements EvcOp {
runtime._prOffset = object.offset;
return;
}

final method = ((object as $Instance).$getProperty(runtime, _method)
as EvalFunction);
try {
Expand Down
2 changes: 0 additions & 2 deletions lib/src/eval/shared/stdlib/core/collection.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import 'dart:math';

import 'package:dart_eval/dart_eval_bridge.dart';
import 'package:dart_eval/src/eval/shared/stdlib/core/iterator.dart';
import 'package:dart_eval/stdlib/core.dart';
import 'package:dart_eval/src/eval/runtime/exception.dart';

part 'iterable.dart';
part 'list.dart';
Expand Down

0 comments on commit 1700dac

Please sign in to comment.