| OLD | NEW |
| 1 # Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 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 | 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 # Each entry in this map corresponds to a diagnostic message. Ideally, each | 5 # Each entry in this map corresponds to a diagnostic message. Ideally, each |
| 6 # entry contains three parts: | 6 # entry contains three parts: |
| 7 # | 7 # |
| 8 # 1. A message template (template). | 8 # 1. A message template (template). |
| 9 # | 9 # |
| 10 # 2. A suggestion for how to correct the problem (tip). | 10 # 2. A suggestion for how to correct the problem (tip). |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 analyzerCode: EXPECTED_STRING_LITERAL | 170 analyzerCode: EXPECTED_STRING_LITERAL |
| 171 dart2jsCode: "*fatal*" | 171 dart2jsCode: "*fatal*" |
| 172 | 172 |
| 173 ExpectedType: | 173 ExpectedType: |
| 174 template: "Expected a type, but got '#lexeme'." | 174 template: "Expected a type, but got '#lexeme'." |
| 175 dart2jsCode: "*fatal*" | 175 dart2jsCode: "*fatal*" |
| 176 | 176 |
| 177 ExtraneousModifier: | 177 ExtraneousModifier: |
| 178 template: "Can't have modifier '#lexeme' here." | 178 template: "Can't have modifier '#lexeme' here." |
| 179 tip: "Try removing '#lexeme'." | 179 tip: "Try removing '#lexeme'." |
| 180 analyzerCode: UNEXPECTED_TOKEN | 180 analyzerCode: EXTRANEOUS_MODIFIER |
| 181 dart2jsCode: EXTRANEOUS_MODIFIER | 181 dart2jsCode: EXTRANEOUS_MODIFIER |
| 182 script: | 182 script: |
| 183 - "var String foo; main(){}" | 183 - "var String foo; main(){}" |
| 184 - "var set foo; main(){}" | 184 - "var set foo; main(){}" |
| 185 - "var final foo; main(){}" | 185 - "var final foo; main(){}" |
| 186 - "var var foo; main(){}" | 186 - "var var foo; main(){}" |
| 187 - "var const foo; main(){}" | 187 - "var const foo; main(){}" |
| 188 - "var abstract foo; main(){}" | 188 - "var abstract foo; main(){}" |
| 189 - "var static foo; main(){}" | 189 - "var static foo; main(){}" |
| 190 - "var external foo; main(){}" | 190 - "var external foo; main(){}" |
| 191 - "get var foo; main(){}" | 191 - "get var foo; main(){}" |
| 192 - "set var foo; main(){}" | 192 - "set var foo; main(){}" |
| 193 - "final var foo; main(){}" | 193 - "final var foo; main(){}" |
| 194 - "var var foo; main(){}" | 194 - "var var foo; main(){}" |
| 195 - "const var foo; main(){}" | 195 - "const var foo; main(){}" |
| 196 - "abstract var foo; main(){}" | 196 - "abstract var foo; main(){}" |
| 197 - "static var foo; main(){}" | 197 - "static var foo; main(){}" |
| 198 - "external var foo; main(){}" | 198 - "external var foo; main(){}" |
| 199 - "set foo; main(){}" | 199 - "set foo; main(){}" |
| 200 - "abstract foo; main(){}" | 200 - "abstract foo; main(){}" |
| 201 - "static foo; main(){}" | 201 - "static foo; main(){}" |
| 202 - "external foo; main(){}" | 202 - "external foo; main(){}" |
| 203 - "class C {abstract C.c();}" |
| 203 | 204 |
| 204 InvalidAwaitFor: | 205 InvalidAwaitFor: |
| 205 template: "'await' is only supported in methods with an 'async' or 'async*' bo
dy modifier." | 206 template: "'await' is only supported in methods with an 'async' or 'async*' bo
dy modifier." |
| 206 tip: "Try adding 'async' or 'async*' to the method body or removing the 'await
' keyword." | 207 tip: "Try adding 'async' or 'async*' to the method body or removing the 'await
' keyword." |
| 207 dart2jsCode: INVALID_AWAIT_FOR | 208 dart2jsCode: INVALID_AWAIT_FOR |
| 208 script: > | 209 script: > |
| 209 main(o) sync* { | 210 main(o) sync* { |
| 210 await for (var e in o) {} | 211 await for (var e in o) {} |
| 211 } | 212 } |
| 212 | 213 |
| (...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 907 PackageNotFound: | 908 PackageNotFound: |
| 908 template: "Could not resolve the package '#name' in '#uri'." | 909 template: "Could not resolve the package '#name' in '#uri'." |
| 909 | 910 |
| 910 InvalidPackageUri: | 911 InvalidPackageUri: |
| 911 template: "Invalid package Uri '#uri':\n #string." | 912 template: "Invalid package Uri '#uri':\n #string." |
| 912 | 913 |
| 913 IntegerLiteralIsOutOfRange: | 914 IntegerLiteralIsOutOfRange: |
| 914 template: "The integer literal #lexeme can't be represented in 64 bits." | 915 template: "The integer literal #lexeme can't be represented in 64 bits." |
| 915 tip: "Try using BigInt (from 'dart:typed_data' library) if you need an integer
larger than 9,223,372,036,854,775,807 or less than -9,223,372,036,854,775,808." | 916 tip: "Try using BigInt (from 'dart:typed_data' library) if you need an integer
larger than 9,223,372,036,854,775,807 or less than -9,223,372,036,854,775,808." |
| 916 | 917 |
| OLD | NEW |