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

Side by Side Diff: pkg/analyzer/lib/dart/ast/standard_ast_factory.dart

Issue 2522143003: Create a new AstFactory class to be used by analyzer and its clients. (Closed)
Patch Set: Created 4 years 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 import 'package:analyzer/dart/ast/ast_factory.dart';
6 import 'package:analyzer/src/dart/ast/ast_factory.dart';
7
8 /**
9 * Gets an instance of [AstFactory] based on the standard AST implementation.
10 */
11 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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698