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

Unified Diff: pkg/compiler/lib/src/kernel/native_basic_data.dart

Issue 2975433002: Assert that we don't mix K and J elements (Closed)
Patch Set: Updated cf. comments Created 3 years, 5 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/kernel/kernel_strategy.dart ('k') | pkg/compiler/lib/src/native/behavior.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/kernel/native_basic_data.dart
diff --git a/pkg/compiler/lib/src/kernel/native_basic_data.dart b/pkg/compiler/lib/src/kernel/native_basic_data.dart
index 0bcda3d2f569bb97fcf3e3843ba534b6c40486db..016b211395f5ac0e07f4e5e3b73fa6da4efdfb94 100644
--- a/pkg/compiler/lib/src/kernel/native_basic_data.dart
+++ b/pkg/compiler/lib/src/kernel/native_basic_data.dart
@@ -7,11 +7,11 @@ part of dart2js.kernel.element_map;
class KernelAnnotationProcessor implements AnnotationProcessor {
final KernelToElementMapForImpactImpl2 elementMap;
+ final NativeBasicDataBuilder _nativeBasicDataBuilder;
- KernelAnnotationProcessor(this.elementMap);
+ KernelAnnotationProcessor(this.elementMap, this._nativeBasicDataBuilder);
- void extractNativeAnnotations(
- LibraryEntity library, NativeBasicDataBuilder nativeBasicDataBuilder) {
+ void extractNativeAnnotations(LibraryEntity library) {
ElementEnvironment elementEnvironment = elementMap.elementEnvironment;
CommonElements commonElements = elementMap.commonElements;
@@ -30,13 +30,12 @@ class KernelAnnotationProcessor implements AnnotationProcessor {
}
}
if (annotationName != null) {
- nativeBasicDataBuilder.setNativeClassTagInfo(cls, annotationName);
+ _nativeBasicDataBuilder.setNativeClassTagInfo(cls, annotationName);
}
});
}
- void extractJsInteropAnnotations(
- LibraryEntity library, NativeBasicDataBuilder nativeBasicDataBuilder) {
+ void extractJsInteropAnnotations(LibraryEntity library) {
// TODO(redemption): Implement this.
}
« no previous file with comments | « pkg/compiler/lib/src/kernel/kernel_strategy.dart ('k') | pkg/compiler/lib/src/native/behavior.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698