| 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 servicec.plugins.cc; | 5 library servicec.plugins.cc; |
| 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 | 11 |
| 12 import 'shared.dart'; | 12 import 'shared.dart'; |
| 13 | 13 |
| 14 import '../emitter.dart'; | 14 import '../emitter.dart'; |
| 15 import '../primitives.dart' as primitives; | 15 import '../primitives.dart' as primitives; |
| 16 import '../struct_layout.dart'; | 16 import '../struct_layout.dart'; |
| 17 | 17 |
| 18 const List<String> RESOURCES = const [ | 18 const List<String> RESOURCES = const [ |
| 19 "ImmiBase.h", | 19 "ImmiBase.h", |
| 20 ]; | 20 ]; |
| 21 | 21 |
| 22 const COPYRIGHT = """ | 22 const COPYRIGHT = """ |
| 23 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 23 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
| 24 // for details. All rights reserved. Use of this source code is governed by a | 24 // for details. All rights reserved. Use of this source code is governed by a |
| 25 // BSD-style license that can be found in the LICENSE.md file. | 25 // BSD-style license that can be found in the LICENSE.md file. |
| 26 """; | 26 """; |
| 27 | 27 |
| 28 const Map<String, String> _TYPES = const { | 28 const Map<String, String> _TYPES = const { |
| 29 'void' : 'void', | 29 'void' : 'void', |
| 30 'bool' : 'bool', | 30 'bool' : 'bool', |
| 31 | 31 |
| 32 'uint8' : 'uint8_t', | 32 'uint8' : 'uint8_t', |
| 33 'uint16' : 'uint16_t', | 33 'uint16' : 'uint16_t', |
| (...skipping 1174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1208 String actionPatchType(Method method) { | 1208 String actionPatchType(Method method) { |
| 1209 List<Type> types = method.arguments.map((formal) => formal.type); | 1209 List<Type> types = method.arguments.map((formal) => formal.type); |
| 1210 return 'Action${actionTypeSuffix(types)}Patch'; | 1210 return 'Action${actionTypeSuffix(types)}Patch'; |
| 1211 } | 1211 } |
| 1212 | 1212 |
| 1213 String actionBlockType(Method method) { | 1213 String actionBlockType(Method method) { |
| 1214 List<Type> types = method.arguments.map((formal) => formal.type); | 1214 List<Type> types = method.arguments.map((formal) => formal.type); |
| 1215 return 'Action${actionTypeSuffix(types)}Block'; | 1215 return 'Action${actionTypeSuffix(types)}Block'; |
| 1216 } | 1216 } |
| 1217 } | 1217 } |
| OLD | NEW |