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

Issue 2965393002: Use FastaMessage instead of String. Part 1. (Closed)

Created:
3 years, 5 months ago by ahe
Modified:
3 years, 5 months ago
CC:
reviews_dartlang.org, dart-uxr+reviews_google.com, dart-fe-team+reviews_google.com, Johnni Winther
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Use FastaMessage instead of String. Part 1. See #30080. R=sigmund@google.com Committed: https://github.com/dart-lang/sdk/commit/b023d925eab4ec717f70071afaa34f51ef9dc4b5

Patch Set 1 #

Total comments: 12

Patch Set 2 : Don't rely on functions. #

Patch Set 3 : Add MessageCode class to represent message that need no interpolation. #

Patch Set 4 : Add type variable to Code. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1405 lines, -1191 lines) Patch
M pkg/analyzer/lib/src/fasta/ast_builder.dart View 1 3 chunks +8 lines, -12 lines 0 comments Download
M pkg/analyzer/tool/summary/mini_ast.dart View 1 2 chunks +3 lines, -3 lines 0 comments Download
M pkg/compiler/lib/src/parser/element_listener.dart View 1 5 chunks +6 lines, -6 lines 0 comments Download
M pkg/compiler/lib/src/tree/nodes.dart View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M pkg/front_end/lib/src/fasta/builder/class_builder.dart View 1 2 chunks +14 lines, -0 lines 0 comments Download
M pkg/front_end/lib/src/fasta/builder/constructor_reference_builder.dart View 1 2 chunks +3 lines, -3 lines 0 comments Download
M pkg/front_end/lib/src/fasta/builder/library_builder.dart View 1 2 chunks +22 lines, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/command_line.dart View 1 5 chunks +14 lines, -7 lines 0 comments Download
M pkg/front_end/lib/src/fasta/compiler_command_line.dart View 1 3 chunks +13 lines, -63 lines 0 comments Download
M pkg/front_end/lib/src/fasta/fasta_codes.dart View 1 2 3 1 chunk +55 lines, -19 lines 0 comments Download
M pkg/front_end/lib/src/fasta/fasta_codes_generated.dart View 1 2 3 1 chunk +770 lines, -761 lines 0 comments Download
M pkg/front_end/lib/src/fasta/kernel/body_builder.dart View 1 14 chunks +51 lines, -34 lines 0 comments Download
M pkg/front_end/lib/src/fasta/kernel/fasta_accessors.dart View 1 4 chunks +21 lines, -18 lines 0 comments Download
M pkg/front_end/lib/src/fasta/kernel/kernel_class_builder.dart View 1 2 chunks +6 lines, -4 lines 0 comments Download
M pkg/front_end/lib/src/fasta/kernel/kernel_function_type_alias_builder.dart View 1 2 chunks +4 lines, -2 lines 0 comments Download
M pkg/front_end/lib/src/fasta/kernel/kernel_invalid_type_builder.dart View 1 2 chunks +4 lines, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/kernel/kernel_named_type_builder.dart View 1 2 chunks +4 lines, -4 lines 0 comments Download
M pkg/front_end/lib/src/fasta/kernel/kernel_procedure_builder.dart View 1 2 chunks +2 lines, -3 lines 0 comments Download
M pkg/front_end/lib/src/fasta/kernel/kernel_target.dart View 1 3 chunks +7 lines, -3 lines 0 comments Download
M pkg/front_end/lib/src/fasta/loader.dart View 1 3 chunks +18 lines, -6 lines 0 comments Download
M pkg/front_end/lib/src/fasta/messages.dart View 1 2 chunks +26 lines, -0 lines 0 comments Download
M pkg/front_end/lib/src/fasta/parser/class_member_parser.dart View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M pkg/front_end/lib/src/fasta/parser/listener.dart View 1 4 chunks +7 lines, -7 lines 0 comments Download
M pkg/front_end/lib/src/fasta/parser/parser.dart View 1 60 chunks +168 lines, -179 lines 0 comments Download
M pkg/front_end/lib/src/fasta/scanner/error_token.dart View 1 8 chunks +8 lines, -8 lines 0 comments Download
M pkg/front_end/lib/src/fasta/scanner/recover.dart View 1 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/front_end/lib/src/fasta/source/diet_listener.dart View 1 3 chunks +5 lines, -5 lines 0 comments Download
M pkg/front_end/lib/src/fasta/source/diet_parser.dart View 1 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/front_end/lib/src/fasta/source/directive_listener.dart View 1 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/front_end/lib/src/fasta/source/outline_builder.dart View 1 5 chunks +7 lines, -7 lines 0 comments Download
M pkg/front_end/lib/src/fasta/source/stack_listener.dart View 1 4 chunks +11 lines, -7 lines 0 comments Download
M pkg/front_end/messages.yaml View 1 chunk +99 lines, -0 lines 0 comments Download
M pkg/front_end/tool/_fasta/generate_messages.dart View 1 2 3 4 chunks +37 lines, -17 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 11 (4 generated)
ahe
https://codereview.chromium.org/2965393002/diff/20001/pkg/front_end/lib/src/fasta/fasta_codes.dart File pkg/front_end/lib/src/fasta/fasta_codes.dart (right): https://codereview.chromium.org/2965393002/diff/20001/pkg/front_end/lib/src/fasta/fasta_codes.dart#newcode44 pkg/front_end/lib/src/fasta/fasta_codes.dart:44: class BoundFastaCode extends FastaCode<BoundFastaCode> { I'm thinking about renaming ...
3 years, 5 months ago (2017-07-07 15:25:42 UTC) #3
Siggi Cherem (dart-lang)
https://codereview.chromium.org/2965393002/diff/20001/pkg/front_end/lib/src/fasta/builder/library_builder.dart File pkg/front_end/lib/src/fasta/builder/library_builder.dart (right): https://codereview.chromium.org/2965393002/diff/20001/pkg/front_end/lib/src/fasta/builder/library_builder.dart#newcode81 pkg/front_end/lib/src/fasta/builder/library_builder.dart:81: void addCompileTimeError(BoundFastaMessage bind, int charOffset, Uri uri, I feel ...
3 years, 5 months ago (2017-07-07 21:17:08 UTC) #4
ahe
PTAL I suggest you ignore the old patch set. https://codereview.chromium.org/2965393002/diff/20001/pkg/front_end/lib/src/fasta/builder/library_builder.dart File pkg/front_end/lib/src/fasta/builder/library_builder.dart (right): https://codereview.chromium.org/2965393002/diff/20001/pkg/front_end/lib/src/fasta/builder/library_builder.dart#newcode81 pkg/front_end/lib/src/fasta/builder/library_builder.dart:81: ...
3 years, 5 months ago (2017-07-10 13:43:50 UTC) #6
ahe
FYI: Johnni
3 years, 5 months ago (2017-07-10 14:47:11 UTC) #7
Siggi Cherem (dart-lang)
Nice, I really like the new types and naming convention. I feel it also makes ...
3 years, 5 months ago (2017-07-10 16:19:48 UTC) #8
ahe
Thank you, Siggi! https://codereview.chromium.org/2965393002/diff/20001/pkg/front_end/lib/src/fasta/fasta_codes.dart File pkg/front_end/lib/src/fasta/fasta_codes.dart (right): https://codereview.chromium.org/2965393002/diff/20001/pkg/front_end/lib/src/fasta/fasta_codes.dart#newcode11 pkg/front_end/lib/src/fasta/fasta_codes.dart:11: abstract class FastaCode<T> { On 2017/07/10 ...
3 years, 5 months ago (2017-07-10 16:57:26 UTC) #9
ahe
3 years, 5 months ago (2017-07-10 17:50:22 UTC) #11
Message was sent while issue was closed.
Committed patchset #4 (id:100001) manually as
b023d925eab4ec717f70071afaa34f51ef9dc4b5.

Powered by Google App Engine
This is Rietveld 408576698