Chromium Code Reviews

Side by Side Diff: tools/immic/lib/src/plugins/dart.dart

Issue 1649703002: Update project authors statements to Dartino (Closed) Base URL: https://github.com/dartino/sdk.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
« no previous file with comments | « tools/immic/lib/src/parser.dart ('k') | tools/immic/lib/src/plugins/idl.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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.dart; 5 library immic.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 withoutExtension, join, dirname; 10 import 'package:path/path.dart' show withoutExtension, join, dirname;
11 import 'package:strings/strings.dart' as strings; 11 import 'package:strings/strings.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 List<String> RESOURCES = const [ 18 const List<String> RESOURCES = const [
19 "immi.dart", 19 "immi.dart",
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 void generate(String path, 28 void generate(String path,
29 Map<String, Unit> units, 29 Map<String, Unit> units,
30 String outputDirectory) { 30 String outputDirectory) {
31 String directory = join(outputDirectory, 'dart'); 31 String directory = join(outputDirectory, 'dart');
32 units.forEach((path, unit) => _generateNodeFile(path, unit, directory)); 32 units.forEach((path, unit) => _generateNodeFile(path, unit, directory));
33 _generateServiceFile(path, units, directory); 33 _generateServiceFile(path, units, directory);
(...skipping 433 matching lines...)
467 write('Node'); 467 write('Node');
468 } else if (node.resolved != null) { 468 } else if (node.resolved != null) {
469 write("${node.identifier}Node"); 469 write("${node.identifier}Node");
470 } else { 470 } else {
471 String type = _types[node.identifier]; 471 String type = _types[node.identifier];
472 write(type); 472 write(type);
473 } 473 }
474 if (node.isList) write('>'); 474 if (node.isList) write('>');
475 } 475 }
476 } 476 }
OLDNEW
« no previous file with comments | « tools/immic/lib/src/parser.dart ('k') | tools/immic/lib/src/plugins/idl.dart » ('j') | no next file with comments »

Powered by Google App Engine