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

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

Issue 1124733008: Remove const instance creation expressions from the dependency graph. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 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
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 384593ea142bf42168f2e3e50a949125512d02b8..40eb1dbe2dfae6002f88f8757b41c55d068a8771 100644
--- a/pkg/analyzer/lib/src/generated/ast.dart
+++ b/pkg/analyzer/lib/src/generated/ast.dart
@@ -9,7 +9,6 @@ library engine.ast;
import 'dart:collection';
-import 'constant.dart';
import 'element.dart';
import 'engine.dart' show AnalysisEngine;
import 'java_core.dart';
@@ -5261,18 +5260,6 @@ class ConstantEvaluator extends GeneralizingAstVisitor<Object> {
}
/**
- * Object representing a "const" instance creation expression, and its
- * evaluation result. This is used as the AnalysisTarget for constant
- * evaluation of instance creation expressions.
- */
-class ConstantInstanceCreationHandle {
- /**
- * The result of evaluating the constant.
- */
- EvaluationResultImpl evaluationResult;
-}
-
-/**
* A constructor declaration.
*
* > constructorDeclaration ::=
@@ -10519,12 +10506,6 @@ class InstanceCreationExpression extends Expression {
ConstructorElement staticElement;
/**
- * The [ConstantInstanceCreationHandle] holding the result of evaluating this
- * expression, if it is constant.
- */
- ConstantInstanceCreationHandle constantHandle;
-
- /**
* Initialize a newly created instance creation expression.
*/
InstanceCreationExpression(this.keyword, ConstructorName constructorName,
@@ -10570,16 +10551,6 @@ class InstanceCreationExpression extends Expression {
Token get endToken => _argumentList.endToken;
/**
- * The result of evaluating this expression, if it is constant.
- */
- EvaluationResultImpl get evaluationResult {
- if (constantHandle != null) {
- return constantHandle.evaluationResult;
- }
- return null;
- }
-
- /**
* Return `true` if this creation expression is used to invoke a constant
* constructor.
*/
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/constant.dart » ('j') | pkg/analyzer/lib/src/generated/constant.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698