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

Side by Side Diff: pkg/analyzer/lib/src/context/builder.dart

Issue 2717873002: debug analyzer test on windows (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « no previous file | pkg/analyzer/test/src/context/builder_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 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 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.src.context.context_builder; 5 library analyzer.src.context.context_builder;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 import 'dart:core'; 8 import 'dart:core';
9 9
10 import 'package:analyzer/context/declared_variables.dart'; 10 import 'package:analyzer/context/declared_variables.dart';
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 } catch (_) { 386 } catch (_) {
387 // Ignore exceptions thrown while trying to load the options file. 387 // Ignore exceptions thrown while trying to load the options file.
388 } 388 }
389 } else { 389 } else {
390 // Search for the default analysis options 390 // Search for the default analysis options
391 Source source; 391 Source source;
392 // TODO(danrubel) determine if bazel or gn project depends upon flutter 392 // TODO(danrubel) determine if bazel or gn project depends upon flutter
393 if (workspace.hasFlutterDependency) { 393 if (workspace.hasFlutterDependency) {
394 source = 394 source =
395 sourceFactory.forUri('package:flutter/analysis_options_user.yaml'); 395 sourceFactory.forUri('package:flutter/analysis_options_user.yaml');
396 if (resourceProvider.pathContext.separator == r'\') {
397 // echo some debugging information
398 print('>>> hasFlutterDependency');
399 print('>>> source: ${source?.fullName}');
400 }
396 } 401 }
397 if (source == null || !source.exists()) { 402 if (source == null || !source.exists()) {
398 source = 403 source =
399 sourceFactory.forUri('package:dart.analysis_options/default.yaml'); 404 sourceFactory.forUri('package:dart.analysis_options/default.yaml');
400 } 405 }
401 if (source.exists()) { 406 if (source.exists()) {
402 try { 407 try {
403 optionMap = optionsProvider.getOptionsFromSource(source); 408 optionMap = optionsProvider.getOptionsFromSource(source);
404 } catch (_) { 409 } catch (_) {
405 // Ignore exceptions thrown while trying to load the options file. 410 // Ignore exceptions thrown while trying to load the options file.
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
766 } 771 }
767 772
768 /** 773 /**
769 * Find the basic workspace that contains the given [path]. 774 * Find the basic workspace that contains the given [path].
770 */ 775 */
771 static _BasicWorkspace find( 776 static _BasicWorkspace find(
772 ResourceProvider resourceProvider, String path, ContextBuilder builder) { 777 ResourceProvider resourceProvider, String path, ContextBuilder builder) {
773 return new _BasicWorkspace._(resourceProvider, path, builder); 778 return new _BasicWorkspace._(resourceProvider, path, builder);
774 } 779 }
775 } 780 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/test/src/context/builder_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698