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

Side by Side Diff: pkg/analyzer/test/generated/test_support.dart

Issue 2565993002: Remove the command-line plugin (Closed)
Patch Set: remove missed file Created 4 years 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
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 analyzer.test.generated.test_support; 5 library analyzer.test.generated.test_support;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'package:analyzer/dart/ast/ast.dart' show AstNode, SimpleIdentifier; 9 import 'package:analyzer/dart/ast/ast.dart' show AstNode, SimpleIdentifier;
10 import 'package:analyzer/dart/element/element.dart'; 10 import 'package:analyzer/dart/element/element.dart';
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 return method; 92 return method;
93 } 93 }
94 } 94 }
95 fail("Could not find method named $methodName in ${type.displayName}"); 95 fail("Could not find method named $methodName in ${type.displayName}");
96 return null; 96 return null;
97 } 97 }
98 98
99 void setUp() { 99 void setUp() {
100 List<Plugin> plugins = <Plugin>[]; 100 List<Plugin> plugins = <Plugin>[];
101 plugins.addAll(AnalysisEngine.instance.requiredPlugins); 101 plugins.addAll(AnalysisEngine.instance.requiredPlugins);
102 plugins.add(AnalysisEngine.instance.commandLinePlugin);
103 new ExtensionManager().processPlugins(plugins); 102 new ExtensionManager().processPlugins(plugins);
104 } 103 }
105 104
106 void tearDown() {} 105 void tearDown() {}
107 106
108 /** 107 /**
109 * Assert that the given object is an instance of the expected class. 108 * Assert that the given object is an instance of the expected class.
110 * 109 *
111 * @param expectedClass the class that the object is expected to be an instanc e of 110 * @param expectedClass the class that the object is expected to be an instanc e of
112 * @param object the object being tested 111 * @param object the object being tested
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 return UriKind.FILE_URI; 635 return UriKind.FILE_URI;
637 } 636 }
638 637
639 bool operator ==(Object other) { 638 bool operator ==(Object other) {
640 if (other is TestSource) { 639 if (other is TestSource) {
641 return other.uri == uri; 640 return other.uri == uri;
642 } 641 }
643 return false; 642 return false;
644 } 643 }
645 } 644 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/plugin/command_line_plugin.dart ('k') | pkg/analyzer/test/source/error_processor_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698