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

Issue 2625053003: VM: [Kernel] Add toString() support for generated enum classes (Closed)

Created:
3 years, 11 months ago by kustermann
Modified:
3 years, 11 months ago
CC:
reviews_dartlang.org, Lasse Reichstein Nielsen, floitsch
Target Ref:
refs/heads/master
Visibility:
Public.

Description

VM: [Kernel] Add toString() support for generated enum classes R=vegorov@google.com Committed: https://github.com/dart-lang/sdk/commit/23cc9cca4158a78ac58272acd33d3e1dea9cc71e

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix language/enum_test and add suppressions for VM/dart2js #

Patch Set 3 : use old Expect.identical() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -15 lines) Patch
M pkg/kernel/lib/analyzer/ast_from_analyzer.dart View 1 2 chunks +33 lines, -5 lines 0 comments Download
M tests/co19/co19-kernel.status View 1 chunk +0 lines, -1 line 0 comments Download
M tests/language/enum_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/language/language.status View 1 1 chunk +1 line, -0 lines 0 comments Download
M tests/language/language_dart2js.status View 1 1 chunk +1 line, -0 lines 0 comments Download
M tests/language/language_kernel.status View 1 1 chunk +0 lines, -8 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
kustermann
https://codereview.chromium.org/2625053003/diff/1/tests/language/enum_test.dart File tests/language/enum_test.dart (right): https://codereview.chromium.org/2625053003/diff/1/tests/language/enum_test.dart#newcode24 tests/language/enum_test.dart:24: identical(const <Enum2>[Enum2.A], Enum2.values)); I think dartk does the right ...
3 years, 11 months ago (2017-01-11 12:25:06 UTC) #2
Vyacheslav Egorov (Google)
LGTM though I don't like how the test is written with ||. /cc Florian & ...
3 years, 11 months ago (2017-01-11 17:28:28 UTC) #3
Lasse Reichstein Nielsen
https://codereview.chromium.org/2625053003/diff/1/tests/language/enum_test.dart File tests/language/enum_test.dart (right): https://codereview.chromium.org/2625053003/diff/1/tests/language/enum_test.dart#newcode24 tests/language/enum_test.dart:24: identical(const <Enum2>[Enum2.A], Enum2.values)); Agree, the spec is clear. Do ...
3 years, 11 months ago (2017-01-11 17:55:01 UTC) #5
Vyacheslav Egorov (Google)
https://codereview.chromium.org/2625053003/diff/1/tests/language/enum_test.dart File tests/language/enum_test.dart (right): https://codereview.chromium.org/2625053003/diff/1/tests/language/enum_test.dart#newcode24 tests/language/enum_test.dart:24: identical(const <Enum2>[Enum2.A], Enum2.values)); On 2017/01/11 17:55:00, Lasse Reichstein Nielsen ...
3 years, 11 months ago (2017-01-11 17:56:29 UTC) #6
floitsch
Agreed. Imho, it should be a typed list. Even more so, if the spec already ...
3 years, 11 months ago (2017-01-11 17:57:01 UTC) #8
kustermann
3 years, 11 months ago (2017-01-11 18:50:30 UTC) #10
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
23cc9cca4158a78ac58272acd33d3e1dea9cc71e (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698