Index: pkg/analyzer/lib/dart/ast/standard_ast_factory.dart |
diff --git a/pkg/analyzer/lib/dart/ast/standard_ast_factory.dart b/pkg/analyzer/lib/dart/ast/standard_ast_factory.dart |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9333242fd51ffbf4ef37a9ae7655191a7730fabe |
--- /dev/null |
+++ b/pkg/analyzer/lib/dart/ast/standard_ast_factory.dart |
@@ -0,0 +1,11 @@ |
+// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+import 'package:analyzer/dart/ast/ast_factory.dart'; |
+import 'package:analyzer/src/dart/ast/ast_factory.dart'; |
+ |
+/** |
+ * Gets an instance of [AstFactory] based on the standard AST implementation. |
+ */ |
+final AstFactory astFactory = new AstFactoryImpl(); |
Brian Wilkerson
2016/11/23 15:58:18
Any chance that I could convince you to make this
Paul Berry
2016/11/24 15:03:17
(Assuming you mean "move this into lib/dart/ast/as
Brian Wilkerson
2016/11/28 16:27:38
I have a strong negative reaction to global state.
Paul Berry
2016/11/28 18:02:30
Ok, since I got your LGTM, I'm going to land as is
Brian Wilkerson
2016/11/28 18:35:48
I would prefer that we didn't need this global mem
|