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

Unified Diff: pkg/analyzer_experimental/lib/src/analyzer_impl.dart

Issue 14998006: Add some user-friendly utility functions to pkg/analyzer_experimental. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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_experimental/lib/src/analyzer_impl.dart
diff --git a/pkg/analyzer_experimental/lib/analyzer.dart b/pkg/analyzer_experimental/lib/src/analyzer_impl.dart
similarity index 91%
copy from pkg/analyzer_experimental/lib/analyzer.dart
copy to pkg/analyzer_experimental/lib/src/analyzer_impl.dart
index 47f0129246e018a4386d3610ec63803b26f8344f..c6013100a77d2eb27f0efa086e02529b4afe9e37 100644
--- a/pkg/analyzer_experimental/lib/analyzer.dart
+++ b/pkg/analyzer_experimental/lib/src/analyzer_impl.dart
@@ -1,10 +1,22 @@
// Copyright (c) 2013, 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.
-part of analyzer;
+
scheglov 2013/05/09 01:26:46 Missing "library" directive?
+import 'dart:async';
+import 'dart:io';
+
+import 'generated/java_io.dart';
+import 'generated/engine.dart';
+import 'generated/error.dart';
+import 'generated/source_io.dart';
+import 'generated/sdk.dart';
+import 'generated/sdk_io.dart';
+import 'generated/ast.dart';
+import 'generated/element.dart';
+import '../options.dart';
/// Analyzes single library [File].
-class _AnalyzerImpl {
+class AnalyzerImpl {
final CommandLineOptions options;
DartSdk sdk;
@@ -18,7 +30,7 @@ class _AnalyzerImpl {
/// All [AnalysisErrorInfo]s in the analyzed library.
final List<AnalysisErrorInfo> errorInfos = new List<AnalysisErrorInfo>();
- _AnalyzerImpl(CommandLineOptions this.options) {
+ AnalyzerImpl(CommandLineOptions this.options) {
sdk = new DirectoryBasedDartSdk(new JavaFile(options.dartSdkPath));
}

Powered by Google App Engine
This is Rietveld 408576698