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

Issue 2974203002: Remove prefixes from messages and document why. (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
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+148 lines, -131 lines) Patch
M pkg/front_end/lib/src/fasta/fasta_codes_generated.dart View 20 chunks +99 lines, -104 lines 0 comments Download
M pkg/front_end/lib/src/fasta/problems.dart View 1 chunk +25 lines, -11 lines 0 comments Download
M pkg/front_end/messages.yaml View 3 chunks +24 lines, -16 lines 2 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 8 (3 generated)
ahe
3 years, 5 months ago (2017-07-11 12:57:02 UTC) #2
Johnni Winther
lgtm
3 years, 5 months ago (2017-07-11 18:35:23 UTC) #3
ahe
Committed patchset #1 (id:1) manually as 20ffc179b70a7b4765c81d0de013fe366e56e6b6 (presubmit successful).
3 years, 5 months ago (2017-07-12 15:18:12 UTC) #5
Siggi Cherem (dart-lang)
https://codereview.chromium.org/2974203002/diff/1/pkg/front_end/messages.yaml File pkg/front_end/messages.yaml (right): https://codereview.chromium.org/2974203002/diff/1/pkg/front_end/messages.yaml#newcode21 pkg/front_end/messages.yaml:21: # "InternalProblem". This way, UX review can prioritize it ...
3 years, 5 months ago (2017-07-12 20:37:00 UTC) #7
ahe
3 years, 5 months ago (2017-07-13 00:17:06 UTC) #8
Message was sent while issue was closed.
Thank you, Siggi!

https://codereview.chromium.org/2974203002/diff/1/pkg/front_end/messages.yaml
File pkg/front_end/messages.yaml (right):

https://codereview.chromium.org/2974203002/diff/1/pkg/front_end/messages.yaml...
pkg/front_end/messages.yaml:21: # "InternalProblem". This way, UX review can
prioritize it accordingly.
On 2017/07/12 20:37:00, Siggi Cherem (dart-lang) wrote:
> should we also have a boolean property on Code/Message for internal errors as
> well? (make it easier for code to easily sort through them)

Good question. I can't make up my mind right now. I've created an enum for
severity that currently looks like this:

enum Severity {
  error,
  internalProblem,
  nit,
  warning,
}

I don't want to hard-code severity in the Message objects, and it feels clunky
to add a withSeverity method. I hope you can help me sort this out in our next
1:1.

Powered by Google App Engine
This is Rietveld 408576698