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

Unified Diff: pkg/analyzer_cli/bin/analyzer.dart

Issue 1464553003: Move `analyzer_cli` into the SDK. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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_cli/bin/analyzer.dart
diff --git a/tests/language/deferred_function_type_lib.dart b/pkg/analyzer_cli/bin/analyzer.dart
similarity index 53%
copy from tests/language/deferred_function_type_lib.dart
copy to pkg/analyzer_cli/bin/analyzer.dart
index 1f0e610aac59572ef332c77ebb2d2acdac5ab189..b0a32feee9eabf0503e2c5bdc853349d12530738 100644
--- a/tests/language/deferred_function_type_lib.dart
+++ b/pkg/analyzer_cli/bin/analyzer.dart
@@ -1,20 +1,16 @@
+#!/usr/bin/env dart
// Copyright (c) 2015, 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:expect/expect.dart';
+import 'package:analyzer_cli/src/driver.dart';
-class T {
- A foo(int x) {}
-}
-
-class A{}
-typedef A F(int x);
-use(x) => x;
-runTest() {
- use(new A());
- Expect.isTrue(new T().foo is F);
+/// The entry point for the analyzer.
+void main(List<String> args) {
+ var starter = new Driver();
+ starter.start(args);
+
}

Powered by Google App Engine
This is Rietveld 408576698