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

Issue 1501633003: Strong-mode error code validation "enum" (#25117). (Closed)

Created:
5 years ago by pquitslund
Modified:
5 years ago
Reviewers:
Leaf, Jennifer Messerly
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Strong-mode error code validation "enum" (#25117). Adds an enum of valid strong-mode error code names a la `ErrorCode.values`. This gets used in error code validation when processing `.analysis_options`. See: https://github.com/dart-lang/sdk/issues/25117 BUG= R=jmesserly@google.com Committed: https://github.com/dart-lang/sdk/commit/109ccdaf970a8a1e261b4f6bbcb12cfa7cc8fc4c

Patch Set 1 #

Total comments: 4

Patch Set 2 : cleanup #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -1 line) Patch
M pkg/analyzer/lib/src/task/options.dart View 1 3 chunks +6 lines, -1 line 0 comments Download
M pkg/analyzer/lib/src/task/strong/info.dart View 1 1 chunk +26 lines, -0 lines 0 comments Download
M pkg/analyzer/test/src/task/options_test.dart View 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
pquitslund
5 years ago (2015-12-05 00:31:04 UTC) #2
Jennifer Messerly
lgtm https://codereview.chromium.org/1501633003/diff/1/pkg/analyzer/lib/src/task/options.dart File pkg/analyzer/lib/src/task/options.dart (right): https://codereview.chromium.org/1501633003/diff/1/pkg/analyzer/lib/src/task/options.dart#newcode131 pkg/analyzer/lib/src/task/options.dart:131: StaticInfo.names.any((String code) => code == name); StaticInfo.names.contains? https://codereview.chromium.org/1501633003/diff/1/pkg/analyzer/lib/src/task/strong/info.dart ...
5 years ago (2015-12-05 00:59:27 UTC) #3
pquitslund
Cheers John! https://codereview.chromium.org/1501633003/diff/1/pkg/analyzer/lib/src/task/options.dart File pkg/analyzer/lib/src/task/options.dart (right): https://codereview.chromium.org/1501633003/diff/1/pkg/analyzer/lib/src/task/options.dart#newcode131 pkg/analyzer/lib/src/task/options.dart:131: StaticInfo.names.any((String code) => code == name); On ...
5 years ago (2015-12-06 17:07:18 UTC) #4
pquitslund
Committed patchset #2 (id:20001) manually as 109ccdaf970a8a1e261b4f6bbcb12cfa7cc8fc4c (presubmit successful).
5 years ago (2015-12-06 17:10:17 UTC) #6
pquitslund
5 years ago (2015-12-06 17:25:36 UTC) #7
Message was sent while issue was closed.
>
https://codereview.chromium.org/1501633003/diff/1/pkg/analyzer/lib/src/task/s...
> File pkg/analyzer/lib/src/task/strong/info.dart (right):
> 
>
https://codereview.chromium.org/1501633003/diff/1/pkg/analyzer/lib/src/task/s...
> pkg/analyzer/lib/src/task/strong/info.dart:491: static const List<String>
names
> = const [
> consider: lazy initialized Set for faster lookup?

Ask and ye shall receive...

https://codereview.chromium.org/1505623002/

:)

Powered by Google App Engine
This is Rietveld 408576698