OLD | NEW |
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/element/element.dart'; | 7 import 'package:analyzer/dart/element/element.dart'; |
8 | 8 |
9 import '../errors.dart' show | 9 import '../errors.dart' show |
10 internalError; | 10 internalError; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 LibraryElement get library => internalError("not supported."); | 49 LibraryElement get library => internalError("not supported."); |
50 | 50 |
51 get location => internalError("not supported."); | 51 get location => internalError("not supported."); |
52 | 52 |
53 get metadata => internalError("not supported."); | 53 get metadata => internalError("not supported."); |
54 | 54 |
55 String get name => internalError("not supported."); | 55 String get name => internalError("not supported."); |
56 | 56 |
57 int get nameLength => internalError("not supported."); | 57 int get nameLength => internalError("not supported."); |
58 | 58 |
59 int get nameOffset => internalError("not supported."); | 59 int get nameOffset => -1; |
60 | 60 |
61 get unit => internalError("not supported."); | 61 get unit => internalError("not supported."); |
62 | 62 |
63 accept(visitor) => internalError("not supported."); | 63 accept(visitor) => internalError("not supported."); |
64 | 64 |
65 String computeDocumentationComment() => internalError("not supported."); | 65 String computeDocumentationComment() => internalError("not supported."); |
66 | 66 |
67 computeNode() => internalError("not supported."); | 67 computeNode() => internalError("not supported."); |
68 | 68 |
69 Element getAncestor(predicate) => internalError("not supported."); | 69 Element getAncestor(predicate) => internalError("not supported."); |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 List<ParameterElement> get parameters => internalError("not supported."); | 351 List<ParameterElement> get parameters => internalError("not supported."); |
352 | 352 |
353 List<TypeParameterElement> get typeParameters { | 353 List<TypeParameterElement> get typeParameters { |
354 return internalError("not supported."); | 354 return internalError("not supported."); |
355 } | 355 } |
356 | 356 |
357 void appendToWithoutDelimiters(StringBuffer buffer) { | 357 void appendToWithoutDelimiters(StringBuffer buffer) { |
358 return internalError("not supported."); | 358 return internalError("not supported."); |
359 } | 359 } |
360 } | 360 } |
OLD | NEW |