OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file |
| 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. |
| 4 |
| 5 library fasta.codes; |
| 6 |
| 7 import 'package:front_end/src/fasta/scanner/token.dart' show Token; |
| 8 |
| 9 part 'fasta_codes_generated.dart'; |
| 10 |
| 11 class FastaCode<T> { |
| 12 final String template; |
| 13 |
| 14 final String tip; |
| 15 |
| 16 final String analyzerCode; |
| 17 |
| 18 final String dart2jsCode; |
| 19 |
| 20 final T format; |
| 21 |
| 22 const FastaCode( |
| 23 {this.template, |
| 24 this.tip, |
| 25 this.analyzerCode, |
| 26 this.dart2jsCode, |
| 27 this.format}); |
| 28 } |
| 29 |
| 30 class FastaMessage { |
| 31 final Uri uri; |
| 32 |
| 33 final int charOffset; |
| 34 |
| 35 final String message; |
| 36 |
| 37 final String tip; |
| 38 |
| 39 final FastaCode code; |
| 40 |
| 41 final Map<String, dynamic> arguments; |
| 42 |
| 43 const FastaMessage(this.uri, this.charOffset, this.code, |
| 44 {this.message, this.tip, this.arguments}); |
| 45 } |
OLD | NEW |