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

Unified Diff: pkg/dev_compiler/lib/src/compiler/js_interop.dart

Issue 2994203002: Optimize DDC private library files. (Closed)
Patch Set: Address comments Created 3 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 side-by-side diff with in-line comments
Download patch
Index: pkg/dev_compiler/lib/src/compiler/js_interop.dart
diff --git a/pkg/dev_compiler/lib/src/compiler/js_interop.dart b/pkg/dev_compiler/lib/src/compiler/js_interop.dart
index 0883e414a2d10446eb16cea2369c2ee2f9590193..46f27ad7689d985ddb7398793afcc3cdaf6656fc 100644
--- a/pkg/dev_compiler/lib/src/compiler/js_interop.dart
+++ b/pkg/dev_compiler/lib/src/compiler/js_interop.dart
@@ -70,6 +70,12 @@ bool isJsPeerInterface(DartObjectImpl value) =>
bool isNativeAnnotation(DartObjectImpl value) =>
_isBuiltinAnnotation(value, '_js_helper', 'Native');
+bool isNotNullAnnotation(DartObjectImpl value) =>
+ _isBuiltinAnnotation(value, '_js_helper', 'NotNull');
+
+bool isNullCheckAnnotation(DartObjectImpl value) =>
+ _isBuiltinAnnotation(value, '_js_helper', 'NullCheck');
+
/// Returns the name value of the `JSExportName` annotation (when compiling
/// the SDK), or `null` if there's none. This is used to control the name
/// under which functions are compiled and exported.

Powered by Google App Engine
This is Rietveld 408576698