OLD | NEW |
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 import 'dart:io'; | 5 import 'dart:io'; |
6 import 'dart:convert'; | 6 import 'dart:convert'; |
7 | 7 |
8 import 'parser.dart'; | 8 import 'parser.dart'; |
9 import 'primitives.dart' as primitives; | 9 import 'primitives.dart' as primitives; |
10 import 'struct_layout.dart'; | 10 import 'struct_layout.dart'; |
11 | 11 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 | 43 |
44 visitImport(Import import) async { | 44 visitImport(Import import) async { |
45 var newContext = resolver.resolve(import, context); | 45 var newContext = resolver.resolve(import, context); |
46 if (newContext != null) { | 46 if (newContext != null) { |
47 String input = await resolver.read(newContext); | 47 String input = await resolver.read(newContext); |
48 Unit unit = parseUnit(input); | 48 Unit unit = parseUnit(input); |
49 await parse(unit, resolver, newContext, units); | 49 await parse(unit, resolver, newContext, units); |
50 } | 50 } |
51 } | 51 } |
52 } | 52 } |
OLD | NEW |