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

Side by Side Diff: pkg/compiler/lib/src/native/scanner.dart

Issue 2221893003: pkg/compiler: fix imports (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « pkg/compiler/lib/src/native/js.dart ('k') | pkg/compiler/lib/src/null_compiler_output.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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 import '../common.dart'; 5 import '../common.dart';
6 import '../parser/element_listener.dart' show ElementListener; 6 import '../parser/element_listener.dart' show ElementListener;
7 import '../parser/listener.dart' show Listener;
8 import '../tokens/token.dart' show BeginGroupToken, Token; 7 import '../tokens/token.dart' show BeginGroupToken, Token;
9 import '../tokens/token_constants.dart' as Tokens show STRING_TOKEN; 8 import '../tokens/token_constants.dart' as Tokens show STRING_TOKEN;
10 9
11 void checkAllowedLibrary(ElementListener listener, Token token) { 10 void checkAllowedLibrary(ElementListener listener, Token token) {
12 if (listener.scannerOptions.canUseNative) return; 11 if (listener.scannerOptions.canUseNative) return;
13 listener.reportError(token, MessageKind.NATIVE_NOT_SUPPORTED); 12 listener.reportError(token, MessageKind.NATIVE_NOT_SUPPORTED);
14 } 13 }
15 14
16 Token handleNativeBlockToSkip(ElementListener listener, Token token) { 15 Token handleNativeBlockToSkip(ElementListener listener, Token token) {
17 checkAllowedLibrary(listener, token); 16 checkAllowedLibrary(listener, token);
(...skipping 18 matching lines...) Expand all
36 hasExpression = true; 35 hasExpression = true;
37 listener.beginLiteralString(token); 36 listener.beginLiteralString(token);
38 listener.endLiteralString(0); 37 listener.endLiteralString(0);
39 token = token.next; 38 token = token.next;
40 } 39 }
41 listener.endReturnStatement(hasExpression, begin, token); 40 listener.endReturnStatement(hasExpression, begin, token);
42 // TODO(ngeoffray): expect a ';'. 41 // TODO(ngeoffray): expect a ';'.
43 // Currently there are method with both native marker and Dart body. 42 // Currently there are method with both native marker and Dart body.
44 return token.next; 43 return token.next;
45 } 44 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/native/js.dart ('k') | pkg/compiler/lib/src/null_compiler_output.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698