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

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

Issue 1265453005: Code clean-up, mostly constructors (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 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 | « no previous file | pkg/analyzer/lib/src/generated/constant.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/ast.dart
diff --git a/pkg/analyzer/lib/src/generated/ast.dart b/pkg/analyzer/lib/src/generated/ast.dart
index 9802e2a714a876afc48acd71346afbd3e67a29d3..f4a8ff3351aaf3c6b42318cc2ff41211e99d99ee 100644
--- a/pkg/analyzer/lib/src/generated/ast.dart
+++ b/pkg/analyzer/lib/src/generated/ast.dart
@@ -1618,9 +1618,9 @@ class AstCloner implements AstVisitor<AstNode> {
@override
VariableDeclarationList visitVariableDeclarationList(
VariableDeclarationList node) => new VariableDeclarationList(
- cloneNode(node.documentationComment),
- cloneNodeList(node.metadata), cloneToken(node.keyword),
- cloneNode(node.type), cloneNodeList(node.variables));
+ cloneNode(node.documentationComment), cloneNodeList(node.metadata),
+ cloneToken(node.keyword), cloneNode(node.type),
+ cloneNodeList(node.variables));
@override
VariableDeclarationStatement visitVariableDeclarationStatement(
@@ -10842,15 +10842,13 @@ class InterpolationString extends InterpolationElement {
/**
* The value of the literal.
*/
- String _value;
+ String value;
/**
* Initialize a newly created string of characters that are part of a string
* interpolation.
*/
- InterpolationString(this.contents, String value) {
- _value = value;
- }
+ InterpolationString(this.contents, this.value);
@override
Token get beginToken => contents;
@@ -10878,18 +10876,6 @@ class InterpolationString extends InterpolationElement {
@override
Token get endToken => contents;
- /**
- * Return the value of the literal.
- */
- String get value => _value;
-
- /**
- * Set the value of the literal to the given [string].
- */
- void set value(String string) {
- _value = string;
- }
-
@override
accept(AstVisitor visitor) => visitor.visitInterpolationString(this);
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/constant.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698