Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Side by Side Diff: pkg/front_end/lib/src/fasta/parser/dart_vm_native.dart

Issue 2849183002: Revert "Add support for building patched_sdk and platform.dill for dart2js:" (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, the Dart 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 /// Implements support for Dart VM native method bodies of this form: 5 /// Implements support for Dart VM native method bodies on this form:
6 /// 6 ///
7 /// native STRING 7 /// native STRING
8 /// 8 ///
9 /// This support is kept separate from parser.dart as this isn't specified in 9 /// This support is kept separate from parser.dart as this isn't specified in
10 /// the Dart Language Specification, also we hope to remove this syntax long 10 /// the Dart Language Specification, also we hope to remove this syntax long
11 /// term and replace it with annotations as in `dart2js`. 11 /// term and replace it with annotations as in `dart2js`.
12 library fasta.parser.dart_vm_native; 12 library fasta.parser.dart_vm_native;
13 13
14 import '../scanner/token.dart' show Token; 14 import '../scanner/token.dart' show Token;
15 15
(...skipping 30 matching lines...) Expand all
46 Link<Token> removeNativeClause(Link<Token> identifiers) { 46 Link<Token> removeNativeClause(Link<Token> identifiers) {
47 Link<Token> result = identifiers.tail; 47 Link<Token> result = identifiers.tail;
48 if (result.head.kind != STRING_TOKEN) return identifiers; 48 if (result.head.kind != STRING_TOKEN) return identifiers;
49 result = result.tail; 49 result = result.tail;
50 if (result.isEmpty) return identifiers; 50 if (result.isEmpty) return identifiers;
51 if (optional('native', result.head)) { 51 if (optional('native', result.head)) {
52 return result.tail.prepend(identifiers.head); 52 return result.tail.prepend(identifiers.head);
53 } 53 }
54 return identifiers; 54 return identifiers;
55 } 55 }
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/kernel_target.dart ('k') | pkg/front_end/lib/src/fasta/source/diet_listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698