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

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

Issue 2347213002: Rename libraryUri (Closed)
Patch Set: Created 4 years, 3 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/analyzer/lib/dart/ast/ast.dart ('k') | pkg/analyzer/lib/src/dart/ast/utilities.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 234298d0d09eb2a28cbc69fb7c640e2589f50f4e..aaeda16bd09d4debdfe46808970d15b3757ebb1d 100644
--- a/pkg/analyzer/lib/src/dart/ast/ast.dart
+++ b/pkg/analyzer/lib/src/dart/ast/ast.dart
@@ -2609,7 +2609,7 @@ class ConfigurationImpl extends AstNodeImpl implements Configuration {
@override
Token rightParenthesis;
- StringLiteral _libraryUri;
+ StringLiteral _uri;
@override
Source uriSource;
@@ -2624,7 +2624,7 @@ class ConfigurationImpl extends AstNodeImpl implements Configuration {
StringLiteralImpl libraryUri) {
_name = _becomeParentOf(name);
_value = _becomeParentOf(value);
- _libraryUri = _becomeParentOf(libraryUri);
+ _uri = _becomeParentOf(libraryUri);
}
@override
@@ -2638,17 +2638,19 @@ class ConfigurationImpl extends AstNodeImpl implements Configuration {
..add(equalToken)
..add(_value)
..add(rightParenthesis)
- ..add(_libraryUri);
+ ..add(_uri);
@override
- Token get endToken => _libraryUri.endToken;
+ Token get endToken => _uri.endToken;
+ @deprecated
@override
- StringLiteral get libraryUri => _libraryUri;
+ StringLiteral get libraryUri => _uri;
+ @deprecated
@override
void set libraryUri(StringLiteral libraryUri) {
- _libraryUri = _becomeParentOf(libraryUri as AstNodeImpl);
+ _uri = _becomeParentOf(libraryUri as AstNodeImpl);
}
@override
@@ -2660,6 +2662,14 @@ class ConfigurationImpl extends AstNodeImpl implements Configuration {
}
@override
+ StringLiteral get uri => _uri;
+
+ @override
+ void set uri(StringLiteral uri) {
+ _uri = _becomeParentOf(uri as AstNodeImpl);
+ }
+
+ @override
StringLiteral get value => _value;
@override
@@ -2675,7 +2685,7 @@ class ConfigurationImpl extends AstNodeImpl implements Configuration {
void visitChildren(AstVisitor visitor) {
_name?.accept(visitor);
_value?.accept(visitor);
- _libraryUri?.accept(visitor);
+ _uri?.accept(visitor);
}
}
« no previous file with comments | « pkg/analyzer/lib/dart/ast/ast.dart ('k') | pkg/analyzer/lib/src/dart/ast/utilities.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698