File tree 4 files changed +9
-3
lines changed 4 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ export 'src/build_context.dart';
15
15
export 'src/build_manager.dart' ;
16
16
export 'src/mirror_context.dart' ;
17
17
export 'src/exceptions.dart' ;
18
+ export 'src/mirror_coerce.dart' ;
18
19
19
20
/// Compiler for the runtime package itself.
20
21
///
@@ -29,7 +30,7 @@ class RuntimePackageCompiler extends Compiler {
29
30
final libraryFile = File .fromUri (
30
31
destinationDirectory.uri.resolve ("lib/" ).resolve ("runtime.dart" ));
31
32
libraryFile
32
- .writeAsStringSync ("library runtime;\n export 'src/context.dart';" );
33
+ .writeAsStringSync ("library runtime;\n export 'src/context.dart';\n export 'src/exceptions.dart'; " );
33
34
34
35
final contextFile = File .fromUri (destinationDirectory.uri
35
36
.resolve ("lib/" )
File renamed without changes.
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ environment:
51
51
52
52
String get _loaderShell => """
53
53
import 'package:runtime/runtime.dart';
54
-
54
+ import 'package:runtime/slow_coerce.dart' as runtime_cast;
55
55
$_directiveToken
56
56
57
57
RuntimeContext instance = GeneratedContext._();
@@ -64,6 +64,11 @@ class GeneratedContext extends RuntimeContext {
64
64
65
65
runtimes = RuntimeCollection(map);
66
66
}
67
+
68
+ @override
69
+ T coerce<T>(dynamic input) {
70
+ return runtime_cast.cast(input);
71
+ }
67
72
}
68
73
""" ;
69
74
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import 'dart:mirrors';
3
3
4
4
import 'package:runtime/runtime.dart' ;
5
5
import 'package:runtime/src/mirror_coerce.dart' ;
6
- import 'package:runtime/src/ slow_coerce.dart' ;
6
+ import 'package:runtime/slow_coerce.dart' ;
7
7
import 'package:test/test.dart' ;
8
8
9
9
void main () {
You can’t perform that action at this time.
0 commit comments