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

Unified Diff: pkg/compiler/lib/src/native/enqueue.dart

Issue 1892183002: Refactor Parsing to remove compiler dependency (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/native/behavior.dart ('k') | pkg/compiler/lib/src/parser/parser_task.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/native/enqueue.dart
diff --git a/pkg/compiler/lib/src/native/enqueue.dart b/pkg/compiler/lib/src/native/enqueue.dart
index 0a414f6aa43dd69aedd2b5d6a8cbce75dc4a243d..52108857bd1145a4b14e66f9175976b9996a25b9 100644
--- a/pkg/compiler/lib/src/native/enqueue.dart
+++ b/pkg/compiler/lib/src/native/enqueue.dart
@@ -466,7 +466,7 @@ abstract class NativeEnqueuerBase implements NativeEnqueuer {
if (!backend.canLibraryUseNative(element.library)) return false;
// Native method?
return reporter.withCurrentElement(element, () {
- Node node = element.parseNode(resolution.parsing);
+ Node node = element.parseNode(resolution.parsingContext);
if (node is! FunctionExpression) return false;
FunctionExpression functionExpression = node;
node = functionExpression.body;
@@ -615,7 +615,7 @@ class NativeResolutionEnqueuer extends NativeEnqueuerBase {
*/
void registerJsCall(Send node, ForeignResolver resolver) {
NativeBehavior behavior = NativeBehavior.ofJsCall(
- node, reporter, compiler.parsing, compiler.coreTypes, resolver);
+ node, reporter, compiler.parsingContext, compiler.coreTypes, resolver);
registerNativeBehavior(behavior, node);
nativeBehaviors[node] = behavior;
}
@@ -631,7 +631,7 @@ class NativeResolutionEnqueuer extends NativeEnqueuerBase {
*/
void registerJsEmbeddedGlobalCall(Send node, ForeignResolver resolver) {
NativeBehavior behavior = NativeBehavior.ofJsEmbeddedGlobalCall(
- node, reporter, compiler.parsing, compiler.coreTypes, resolver);
+ node, reporter, compiler.parsingContext, compiler.coreTypes, resolver);
registerNativeBehavior(behavior, node);
nativeBehaviors[node] = behavior;
}
@@ -647,7 +647,7 @@ class NativeResolutionEnqueuer extends NativeEnqueuerBase {
*/
void registerJsBuiltinCall(Send node, ForeignResolver resolver) {
NativeBehavior behavior = NativeBehavior.ofJsBuiltinCall(
- node, reporter, compiler.parsing, compiler.coreTypes, resolver);
+ node, reporter, compiler.parsingContext, compiler.coreTypes, resolver);
registerNativeBehavior(behavior, node);
nativeBehaviors[node] = behavior;
}
« no previous file with comments | « pkg/compiler/lib/src/native/behavior.dart ('k') | pkg/compiler/lib/src/parser/parser_task.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698