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

Side by Side Diff: pkg/analysis_server/test/mocks.dart

Issue 1980573003: fix all instances of "the the" (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « docs/language/dartLangSpec.tex ('k') | pkg/analyzer/lib/src/dart/element/element.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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 mocks; 5 library mocks;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:io'; 8 import 'dart:io';
9 9
10 import 'package:analysis_server/plugin/protocol/protocol.dart' 10 import 'package:analysis_server/plugin/protocol/protocol.dart'
11 hide Element, ElementKind; 11 hide Element, ElementKind;
12 import 'package:analysis_server/src/analysis_server.dart'; 12 import 'package:analysis_server/src/analysis_server.dart';
13 import 'package:analysis_server/src/channel/channel.dart'; 13 import 'package:analysis_server/src/channel/channel.dart';
14 import 'package:analysis_server/src/operation/operation.dart'; 14 import 'package:analysis_server/src/operation/operation.dart';
15 import 'package:analysis_server/src/operation/operation_analysis.dart'; 15 import 'package:analysis_server/src/operation/operation_analysis.dart';
16 import 'package:analyzer/dart/element/element.dart'; 16 import 'package:analyzer/dart/element/element.dart';
17 import 'package:analyzer/file_system/file_system.dart' as resource; 17 import 'package:analyzer/file_system/file_system.dart' as resource;
18 import 'package:analyzer/file_system/memory_file_system.dart' as resource; 18 import 'package:analyzer/file_system/memory_file_system.dart' as resource;
19 import 'package:analyzer/source/package_map_provider.dart'; 19 import 'package:analyzer/source/package_map_provider.dart';
20 import 'package:analyzer/source/pub_package_map_provider.dart'; 20 import 'package:analyzer/source/pub_package_map_provider.dart';
21 import 'package:analyzer/src/generated/engine.dart'; 21 import 'package:analyzer/src/generated/engine.dart';
22 import 'package:analyzer/src/generated/source.dart'; 22 import 'package:analyzer/src/generated/source.dart';
23 import 'package:typed_mock/typed_mock.dart'; 23 import 'package:typed_mock/typed_mock.dart';
24 import 'package:unittest/unittest.dart'; 24 import 'package:unittest/unittest.dart';
25 25
26 /** 26 /**
27 * Answer the absolute path the the SDK relative to the currently running 27 * Answer the absolute path the SDK relative to the currently running
28 * script or throw an exception if it cannot be found. 28 * script or throw an exception if it cannot be found.
29 */ 29 */
30 String get sdkPath { 30 String get sdkPath {
31 Uri sdkUri = Platform.script.resolve('../../../sdk/'); 31 Uri sdkUri = Platform.script.resolve('../../../sdk/');
32 32
33 // Verify the directory exists 33 // Verify the directory exists
34 Directory sdkDir = new Directory.fromUri(sdkUri); 34 Directory sdkDir = new Directory.fromUri(sdkUri);
35 if (!sdkDir.existsSync()) { 35 if (!sdkDir.existsSync()) {
36 throw 'Specified Dart SDK does not exist: $sdkDir'; 36 throw 'Specified Dart SDK does not exist: $sdkDir';
37 } 37 }
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 } 434 }
435 return mismatchDescription; 435 return mismatchDescription;
436 } 436 }
437 437
438 @override 438 @override
439 bool matches(item, Map matchState) { 439 bool matches(item, Map matchState) {
440 Response response = item; 440 Response response = item;
441 return response != null && response.id == _id && response.error == null; 441 return response != null && response.id == _id && response.error == null;
442 } 442 }
443 } 443 }
OLDNEW
« no previous file with comments | « docs/language/dartLangSpec.tex ('k') | pkg/analyzer/lib/src/dart/element/element.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698