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 738761b7911c163c79bb76b384f7bf0a96bd07d7..6b3240a99231d0145b86b5539cc7992383001901 100644 |
--- a/pkg/analyzer/lib/src/generated/ast.dart |
+++ b/pkg/analyzer/lib/src/generated/ast.dart |
@@ -10094,6 +10094,11 @@ class SimpleStringLiteral extends StringLiteral { |
String _value; |
/** |
+ * The toolkit specific element associated with this literal, or `null`. |
+ */ |
+ Element _toolkitElement; |
+ |
+ /** |
* Initialize a newly created simple string literal. |
* |
* @param literal the token representing the literal |
@@ -10110,6 +10115,13 @@ class SimpleStringLiteral extends StringLiteral { |
Token get endToken => literal; |
/** |
+ * Return the toolkit specific, non-Dart, element associated with this literal, or `null`. |
+ * |
+ * @return the element associated with this literal |
+ */ |
+ Element get toolkitElement => _toolkitElement; |
+ |
+ /** |
* Return the value of the literal. |
* |
* @return the value of the literal |
@@ -10157,6 +10169,15 @@ class SimpleStringLiteral extends StringLiteral { |
bool get isSynthetic => literal.isSynthetic; |
/** |
+ * Set the toolkit specific, non-Dart, element associated with this literal. |
+ * |
+ * @param element the toolkit specific element to be associated with this literal |
+ */ |
+ void set toolkitElement(Element element) { |
+ _toolkitElement = element; |
+ } |
+ |
+ /** |
* Set the value of the literal to the given string. |
* |
* @param string the value of the literal |
@@ -12176,6 +12197,7 @@ class ConstantEvaluator extends GeneralizingASTVisitor<Object> { |
} else if (leftOperand is double && rightOperand is double) { |
return leftOperand ~/ rightOperand; |
} |
+ } else { |
} |
break; |
} |
@@ -12258,6 +12280,7 @@ class ConstantEvaluator extends GeneralizingASTVisitor<Object> { |
} else if (operand is double) { |
return -operand; |
} |
+ } else { |
} |
break; |
} |