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 file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 library old_servicec.plugins.dart; | 5 library old_servicec.plugins.dart; |
6 | 6 |
7 import 'dart:core' hide Type; | 7 import 'dart:core' hide Type; |
8 import 'dart:io' show Platform, File; | 8 import 'dart:io' show Platform, File; |
9 | 9 |
10 import 'package:path/path.dart' show basenameWithoutExtension, join, dirname; | 10 import 'package:path/path.dart' show basenameWithoutExtension, join, dirname; |
11 import 'package:servicec/util.dart' as strings; | 11 import 'package:servicec/util.dart' as strings; |
12 | 12 |
13 import 'shared.dart'; | 13 import 'shared.dart'; |
14 import '../emitter.dart'; | 14 import '../emitter.dart'; |
15 import '../struct_layout.dart'; | 15 import '../struct_layout.dart'; |
16 import '../primitives.dart' as primitives; | 16 import '../primitives.dart' as primitives; |
17 | 17 |
18 const COPYRIGHT = """ | 18 const COPYRIGHT = """ |
19 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 19 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
20 // for details. All rights reserved. Use of this source code is governed by a | 20 // for details. All rights reserved. Use of this source code is governed by a |
21 // BSD-style license that can be found in the LICENSE.md file. | 21 // BSD-style license that can be found in the LICENSE.md file. |
22 """; | 22 """; |
23 | 23 |
24 const int HEADER_SIZE = 56; | 24 const int HEADER_SIZE = 56; |
25 | 25 |
26 const List<String> RESOURCES = const [ | 26 const List<String> RESOURCES = const [ |
27 "struct.dart", | 27 "struct.dart", |
28 ]; | 28 ]; |
29 | 29 |
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
473 Node resolved = node.resolved; | 473 Node resolved = node.resolved; |
474 if (resolved != null) { | 474 if (resolved != null) { |
475 write('${node.identifier}Builder'); | 475 write('${node.identifier}Builder'); |
476 } else { | 476 } else { |
477 String type = _types[node.identifier]; | 477 String type = _types[node.identifier]; |
478 write(type); | 478 write(type); |
479 } | 479 } |
480 } | 480 } |
481 | 481 |
482 } | 482 } |
OLD | NEW |