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

Unified Diff: pkg/analyzer/lib/src/generated/testing/element_factory.dart

Issue 1050203002: Begin making copies of AST nodes for constants during resolution. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments and switch to using mixins. Created 5 years, 9 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/testing/element_factory.dart
diff --git a/pkg/analyzer/lib/src/generated/testing/element_factory.dart b/pkg/analyzer/lib/src/generated/testing/element_factory.dart
index 9fab12ff89342406125ec4b9db39a4f18c0efd55..ebb0713f1436ec917b3d9685374e4314ba8f815f 100644
--- a/pkg/analyzer/lib/src/generated/testing/element_factory.dart
+++ b/pkg/analyzer/lib/src/generated/testing/element_factory.dart
@@ -70,10 +70,6 @@ class ElementFactory {
[List<String> parameterNames]) =>
classElement(typeName, objectType, parameterNames);
- static ClassElementImpl classTypeAlias2(String typeName,
- [List<String> parameterNames]) =>
- classTypeAlias(typeName, objectType, parameterNames);
-
static classTypeAlias(String typeName, InterfaceType superclassType,
[List<String> parameterNames]) {
ClassElementImpl element =
@@ -82,6 +78,10 @@ class ElementFactory {
return element;
}
+ static ClassElementImpl classTypeAlias2(String typeName,
+ [List<String> parameterNames]) =>
+ classTypeAlias(typeName, objectType, parameterNames);
+
static CompilationUnitElementImpl compilationUnit(String fileName) {
Source source = new NonExistingSource(fileName, UriKind.FILE_URI);
CompilationUnitElementImpl unit = new CompilationUnitElementImpl(fileName);
@@ -89,6 +89,9 @@ class ElementFactory {
return unit;
}
+ static ConstLocalVariableElementImpl constLocalVariableElement(String name) =>
+ new ConstLocalVariableElementImpl(name, 0);
+
static ConstructorElementImpl constructorElement(
ClassElement definingClass, String name, bool isConst,
[List<DartType> argumentTypes]) {

Powered by Google App Engine
This is Rietveld 408576698