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

Issue 2758113002: fasta.PrecedenceInfo implement analyzer.TokenType (Closed)

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

Description

fasta.PrecedenceInfo implement analyzer.TokenType This updates PrecedenceInfo to implement TokenType so that fasta.Token.type can return info for the token type. In addition, the TokenType consts are now reference the corresponding PrecedenceInfo consts so that parsing using either scanner will result in token types that are identical. R=ahe@google.com, paulberry@google.com Committed: https://github.com/dart-lang/sdk/commit/8bef633d3f2bdd1a3d776b07cacc786db215673c

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : make analyzer.TokenType abstract #

Patch Set 4 : rebase #

Total comments: 4

Patch Set 5 : rebase #

Patch Set 6 : merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+748 lines, -325 lines) Patch
M pkg/front_end/lib/src/fasta/scanner/precedence.dart View 2 3 3 chunks +187 lines, -110 lines 0 comments Download
M pkg/front_end/lib/src/fasta/scanner/token.dart View 2 chunks +9 lines, -1 line 0 comments Download
M pkg/front_end/lib/src/scanner/token.dart View 1 2 3 4 chunks +94 lines, -214 lines 0 comments Download
A pkg/front_end/test/precedence_info_test.dart View 1 chunk +458 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
danrubel
3 years, 9 months ago (2017-03-18 23:47:22 UTC) #2
ahe
lgtm https://codereview.chromium.org/2758113002/diff/60001/pkg/front_end/lib/src/fasta/scanner/precedence.dart File pkg/front_end/lib/src/fasta/scanner/precedence.dart (right): https://codereview.chromium.org/2758113002/diff/60001/pkg/front_end/lib/src/fasta/scanner/precedence.dart#newcode248 pkg/front_end/lib/src/fasta/scanner/precedence.dart:248: const PrecedenceInfo('||', 'BAR_BAR', 5, BAR_BAR_TOKEN, isOperator: true); The ...
3 years, 9 months ago (2017-03-20 12:25:30 UTC) #3
Paul Berry
lgtm
3 years, 9 months ago (2017-03-20 16:42:49 UTC) #4
danrubel
https://codereview.chromium.org/2758113002/diff/60001/pkg/front_end/lib/src/fasta/scanner/precedence.dart File pkg/front_end/lib/src/fasta/scanner/precedence.dart (right): https://codereview.chromium.org/2758113002/diff/60001/pkg/front_end/lib/src/fasta/scanner/precedence.dart#newcode248 pkg/front_end/lib/src/fasta/scanner/precedence.dart:248: const PrecedenceInfo('||', 'BAR_BAR', 5, BAR_BAR_TOKEN, isOperator: true); On 2017/03/20 ...
3 years, 9 months ago (2017-03-20 17:19:30 UTC) #5
danrubel
3 years, 9 months ago (2017-03-20 17:41:06 UTC) #7
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
8bef633d3f2bdd1a3d776b07cacc786db215673c (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698