| 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 immic.plugins.shared; | 5 library immic.plugins.shared; |
| 6 | 6 |
| 7 import 'package:strings/strings.dart' as strings; | 7 import 'package:strings/strings.dart' as strings; |
| 8 import 'package:path/path.dart' show basename, basenameWithoutExtension; | 8 import 'package:path/path.dart' show basename, basenameWithoutExtension; |
| 9 | 9 |
| 10 import '../parser.dart'; | 10 import '../parser.dart'; |
| 11 export '../parser.dart'; | 11 export '../parser.dart'; |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 String actionTypeSuffix(List<Type> types) { | 101 String actionTypeSuffix(List<Type> types) { |
| 102 if (types.isEmpty) return 'Void'; | 102 if (types.isEmpty) return 'Void'; |
| 103 return types.map((Type type) => camelize(type.identifier)).join(); | 103 return types.map((Type type) => camelize(type.identifier)).join(); |
| 104 } | 104 } |
| 105 | 105 |
| 106 Iterable mapWithIndex(List list, f(int i, element)) { | 106 Iterable mapWithIndex(List list, f(int i, element)) { |
| 107 int i = 0; | 107 int i = 0; |
| 108 return list.map((e) => f(i++, e)); | 108 return list.map((e) => f(i++, e)); |
| 109 } | 109 } |
| 110 } | 110 } |
| OLD | NEW |