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

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: 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..0371c6868879f03a14c8f98f0f734c4ad75fa497 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 constLocalVariableElement2(
Brian Wilkerson 2015/04/01 20:31:54 Is the '2' in the name needed?
Paul Berry 2015/04/02 15:18:49 No. Removed.
+ 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