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

Unified Diff: pkg/analyzer/lib/src/dart/ast/ast.dart

Issue 1897713002: Make analyzer more strong mode compliant (Closed) Base URL: https://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 | « no previous file | pkg/analyzer/lib/src/dart/element/type.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/dart/ast/ast.dart
diff --git a/pkg/analyzer/lib/src/dart/ast/ast.dart b/pkg/analyzer/lib/src/dart/ast/ast.dart
index 4555a80031ad9492e24e7f8f56849580f5821fd3..3e6d6200b4329b5278e0bcd114651cd95a7a5f42 100644
--- a/pkg/analyzer/lib/src/dart/ast/ast.dart
+++ b/pkg/analyzer/lib/src/dart/ast/ast.dart
@@ -3391,8 +3391,7 @@ abstract class DirectiveImpl extends AnnotatedNodeImpl implements Directive {
* The element associated with this directive, or `null` if the AST structure
* has not been resolved or if this directive could not be resolved.
*/
- @override
- Element element;
+ Element _element;
/**
* Initialize a newly create directive. Either or both of the [comment] and
@@ -3401,6 +3400,16 @@ abstract class DirectiveImpl extends AnnotatedNodeImpl implements Directive {
*/
DirectiveImpl(Comment comment, List<Annotation> metadata)
: super(comment, metadata);
+
+ @override
+ Element get element => _element;
+
+ /**
+ * Set the element associated with this directive to be the given [element].
+ */
+ void set element(Element element) {
+ _element = element;
+ }
}
/**
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/element/type.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698