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

Side by Side Diff: pkg/analyzer/lib/src/fasta/mock_element.dart

Issue 2967203002: Remove CompilationUnitElement.getElementAt(). (Closed)
Patch Set: Created 3 years, 5 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
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 fasta.analyzer.mock_element; 5 library fasta.analyzer.mock_element;
6 6
7 import 'package:analyzer/dart/ast/ast.dart'; 7 import 'package:analyzer/dart/ast/ast.dart';
8 import 'package:analyzer/dart/element/element.dart'; 8 import 'package:analyzer/dart/element/element.dart';
9 import 'package:analyzer/dart/element/type.dart'; 9 import 'package:analyzer/dart/element/type.dart';
10 10
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 210
211 @override 211 @override
212 LineInfo get lineInfo => internalError("not supported."); 212 LineInfo get lineInfo => internalError("not supported.");
213 213
214 List<TopLevelVariableElement> get topLevelVariables { 214 List<TopLevelVariableElement> get topLevelVariables {
215 return internalError("not supported."); 215 return internalError("not supported.");
216 } 216 }
217 217
218 List<ClassElement> get types => internalError("not supported."); 218 List<ClassElement> get types => internalError("not supported.");
219 219
220 Element getElementAt(int offset) => internalError("not supported.");
221
222 ClassElement getEnum(String name) => internalError("not supported."); 220 ClassElement getEnum(String name) => internalError("not supported.");
223 221
224 ClassElement getType(String name) => internalError("not supported."); 222 ClassElement getType(String name) => internalError("not supported.");
225 223
226 CompilationUnit computeNode() => internalError("not supported."); 224 CompilationUnit computeNode() => internalError("not supported.");
227 } 225 }
228 226
229 abstract class MockClassElement extends MockElement implements ClassElement { 227 abstract class MockClassElement extends MockElement implements ClassElement {
230 MockClassElement() : super(ElementKind.CLASS); 228 MockClassElement() : super(ElementKind.CLASS);
231 229
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 get constantValue => internalError("not supported."); 377 get constantValue => internalError("not supported.");
380 378
381 computeConstantValue() => internalError("not supported."); 379 computeConstantValue() => internalError("not supported.");
382 380
383 void appendToWithoutDelimiters(StringBuffer buffer) { 381 void appendToWithoutDelimiters(StringBuffer buffer) {
384 return internalError("not supported."); 382 return internalError("not supported.");
385 } 383 }
386 384
387 FormalParameter computeNode() => internalError("not supported."); 385 FormalParameter computeNode() => internalError("not supported.");
388 } 386 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/dart/element/handle.dart ('k') | pkg/analyzer/test/src/dart/element/element_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698