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

Unified Diff: pkg/front_end/lib/src/fasta/fasta_codes_generated.dart

Issue 2989073002: [fasta] Issue error for large integer literals (Closed)
Patch Set: More detailed error message Created 3 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/kernel/body_builder.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/fasta/fasta_codes_generated.dart
diff --git a/pkg/front_end/lib/src/fasta/fasta_codes_generated.dart b/pkg/front_end/lib/src/fasta/fasta_codes_generated.dart
index 505f593abaa7b2f573ee9ec65fc0a3dd1c191796..bf9556dde9dacd527d8116a07f0b2f6312fce07f 100644
--- a/pkg/front_end/lib/src/fasta/fasta_codes_generated.dart
+++ b/pkg/front_end/lib/src/fasta/fasta_codes_generated.dart
@@ -1344,6 +1344,36 @@ Message _withArgumentsInputFileNotFound(Uri uri_) {
message: """Input file not found: $uri.""", arguments: {'uri': uri_});
}
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
+const Template<
+ Message Function(
+ Token
+ token)> templateIntegerLiteralIsOutOfRange = const Template<
+ Message Function(Token token)>(
+ messageTemplate:
+ r"""The integer literal #lexeme can't be represented in 64 bits.""",
+ tipTemplate:
+ r"""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.""",
+ withArguments: _withArgumentsIntegerLiteralIsOutOfRange);
+
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
+const Code<Message Function(Token token)> codeIntegerLiteralIsOutOfRange =
+ const Code<Message Function(Token token)>(
+ "IntegerLiteralIsOutOfRange",
+ templateIntegerLiteralIsOutOfRange,
+);
+
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
+Message _withArgumentsIntegerLiteralIsOutOfRange(Token token) {
+ String lexeme = token.lexeme;
+ return new Message(codeIntegerLiteralIsOutOfRange,
+ message:
+ """The integer literal $lexeme can't be represented in 64 bits.""",
+ 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.""",
+ arguments: {'token': token});
+}
+
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeInternalProblemAlreadyInitialized =
messageInternalProblemAlreadyInitialized;
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/kernel/body_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698