| 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/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 |
| 11 import '../builder/builder.dart' show Builder; | 11 import 'package:front_end/src/fasta/builder/builder.dart' show Builder; |
| 12 | 12 |
| 13 import '../errors.dart' show internalError; | 13 import 'package:front_end/src/fasta/errors.dart' show internalError; |
| 14 import 'package:analyzer/src/generated/source.dart'; | 14 import 'package:analyzer/src/generated/source.dart'; |
| 15 | 15 |
| 16 abstract class MockElement extends Builder implements Element, LocalElement { | 16 abstract class MockElement extends Builder implements Element, LocalElement { |
| 17 final ElementKind kind; | 17 final ElementKind kind; |
| 18 | 18 |
| 19 MockElement(this.kind) : super(null, -1, null); | 19 MockElement(this.kind) : super(null, -1, null); |
| 20 | 20 |
| 21 get librarySource => internalError("not supported."); | 21 get librarySource => internalError("not supported."); |
| 22 | 22 |
| 23 get source => internalError("not supported."); | 23 get source => internalError("not supported."); |
| (...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 get constantValue => internalError("not supported."); | 366 get constantValue => internalError("not supported."); |
| 367 | 367 |
| 368 computeConstantValue() => internalError("not supported."); | 368 computeConstantValue() => internalError("not supported."); |
| 369 | 369 |
| 370 void appendToWithoutDelimiters(StringBuffer buffer) { | 370 void appendToWithoutDelimiters(StringBuffer buffer) { |
| 371 return internalError("not supported."); | 371 return internalError("not supported."); |
| 372 } | 372 } |
| 373 | 373 |
| 374 FormalParameter computeNode() => internalError("not supported."); | 374 FormalParameter computeNode() => internalError("not supported."); |
| 375 } | 375 } |
| OLD | NEW |