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

Side by Side Diff: pkg/analyzer_experimental/lib/src/analyzer_impl.dart

Issue 22542003: analyzer_exp fixes (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 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. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library analyzer_impl; 5 library analyzer_impl;
6 6
7 import 'dart:async';
8 import 'dart:io'; 7 import 'dart:io';
9 8
10 import 'generated/java_io.dart'; 9 import 'generated/java_io.dart';
11 import 'generated/engine.dart'; 10 import 'generated/engine.dart';
12 import 'generated/error.dart'; 11 import 'generated/error.dart';
13 import 'generated/source_io.dart'; 12 import 'generated/source_io.dart';
14 import 'generated/sdk.dart'; 13 import 'generated/sdk.dart';
15 import 'generated/sdk_io.dart'; 14 import 'generated/sdk_io.dart';
16 import 'generated/ast.dart';
17 import 'generated/element.dart'; 15 import 'generated/element.dart';
18 import '../options.dart'; 16 import '../options.dart';
19 17
20 18
21 DartSdk sdk; 19 DartSdk sdk;
22 20
23 /// Analyzes single library [File]. 21 /// Analyzes single library [File].
24 class AnalyzerImpl { 22 class AnalyzerImpl {
25 final CommandLineOptions options; 23 final CommandLineOptions options;
26 24
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 JavaFile packagesDir = new JavaFile.relative(dir, "packages"); 153 JavaFile packagesDir = new JavaFile.relative(dir, "packages");
156 if (packagesDir.exists()) { 154 if (packagesDir.exists()) {
157 return packagesDir; 155 return packagesDir;
158 } 156 }
159 dir = dir.getParentFile(); 157 dir = dir.getParentFile();
160 } 158 }
161 // not found 159 // not found
162 return null; 160 return null;
163 } 161 }
164 } 162 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698