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

Unified Diff: pkg/analyzer/lib/dart/element/element.dart

Issue 1871103002: Support for @JS() validation (#26225). (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: test fixes 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 | « no previous file | pkg/analyzer/lib/src/dart/element/element.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/dart/element/element.dart
diff --git a/pkg/analyzer/lib/dart/element/element.dart b/pkg/analyzer/lib/dart/element/element.dart
index 860c02963b5f2e77774e88a8a0a4811f1881cd27..a320b8d79ca9f78424a421fea5e87804f3101afd 100644
--- a/pkg/analyzer/lib/dart/element/element.dart
+++ b/pkg/analyzer/lib/dart/element/element.dart
@@ -624,6 +624,11 @@ abstract class Element implements AnalysisTarget {
bool get isDeprecated;
/**
+ * Return `true` if this element has an annotation of the form '@JS(..)'.
+ */
+ bool get isJS;
+
+ /**
* Return `true` if this element has an annotation of the form '@override'.
*/
bool get isOverride;
@@ -813,6 +818,12 @@ abstract class ElementAnnotation implements ConstantEvaluationTarget {
bool get isDeprecated;
/**
+ * Return `true` if this annotation marks the associated element with the `JS`
+ * annotation.
+ */
+ bool get isJS;
+
+ /**
* Return `true` if this annotation marks the associated member as requiring
* overriding methods to call super.
*/
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/element/element.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698