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

Issue 23496048: Add additional hints to the analyzer to catch the 'x is double' dart2js bug. (Closed)

Created:
7 years, 3 months ago by jwren
Modified:
7 years, 3 months ago
CC:
reviews_dartlang.org, devoncarew, pquitslund
Visibility:
Public.

Description

Add additional hints to the analyzer to catch the 'x is double' dart2js bug. - A preference has been added to the editor to enable/disable the dart2js related hints. R=brianwilkerson@google.com Committed: https://code.google.com/p/dart/source/detail?r=27410

Patch Set 1 #

Patch Set 2 : javadoc nit #

Patch Set 3 : Rebase #

Total comments: 12

Patch Set 4 : #

Patch Set 5 : Rebase, comments, bug fix #

Patch Set 6 : Rebase to latest & merge #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+420 lines, -29 lines) Patch
M editor/tools/plugins/com.google.dart.eclipse.ui/plugin.properties View 1 chunk +1 line, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.eclipse.ui/plugin.xml View 1 chunk +5 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/context/AnalysisOptions.java View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/HintCode.java View 1 chunk +21 lines, -0 lines 4 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/context/AnalysisOptionsImpl.java View 1 2 3 2 chunks +19 lines, -0 lines 0 comments Download
A editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/hint/Dart2JSVerifier.java View 1 2 3 1 chunk +102 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/hint/HintGenerator.java View 1 2 3 3 chunks +11 lines, -6 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/HintCodeTest.java View 1 2 3 4 1 chunk +32 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/StrictModeTest.java View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/DartCore.java View 2 chunks +11 lines, -2 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/model/ContextManager.java View 1 chunk +8 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/analysis/model/ProjectImpl.java View 1 2 3 3 chunks +10 lines, -1 line 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/analysis/model/ProjectManagerImpl.java View 1 chunk +7 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/analysis/timing/ScanTimings.java View 1 chunk +5 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.deploy/plugin.properties View 1 chunk +1 line, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.deploy/plugin.xml View 1 chunk +5 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/preferences/DartBasePreferencePage.java View 7 chunks +4 lines, -15 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/preferences/HintPreferencePage.java View 1 2 3 4 1 chunk +158 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/preferences/PreferencesMessages.java View 1 chunk +6 lines, -2 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/preferences/PreferencesMessages.properties View 1 chunk +6 lines, -3 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
jwren
7 years, 3 months ago (2013-09-11 21:04:09 UTC) #1
Brian Wilkerson
LGTM, although I think it would be good to rename everything with "JS" in the ...
7 years, 3 months ago (2013-09-11 21:28:45 UTC) #2
jwren
https://codereview.chromium.org/23496048/diff/4001/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/context/AnalysisOptions.java File editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/context/AnalysisOptions.java (right): https://codereview.chromium.org/23496048/diff/4001/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/context/AnalysisOptions.java#newcode22 editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/context/AnalysisOptions.java:22: * Return {@code true} if analysis is to generate ...
7 years, 3 months ago (2013-09-11 22:21:07 UTC) #3
jwren
Committed patchset #6 manually as r27410 (presubmit successful).
7 years, 3 months ago (2013-09-11 22:26:38 UTC) #4
karlklose
DBC https://codereview.chromium.org/23496048/diff/16001/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/HintCode.java File editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/HintCode.java (right): https://codereview.chromium.org/23496048/diff/16001/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/HintCode.java#newcode52 editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/HintCode.java:52: IS_INT("When compiled to JS, this test will return ...
7 years, 3 months ago (2013-09-12 10:53:56 UTC) #5
jwren
7 years, 3 months ago (2013-09-12 20:45:06 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/23496048/diff/16001/editor/tools/plugins/com....
File
editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/HintCode.java
(right):

https://codereview.chromium.org/23496048/diff/16001/editor/tools/plugins/com....
editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/HintCode.java:52:
IS_INT("When compiled to JS, this test will return true when the left hand side
is a double"),
On 2013/09/12 10:53:56, karlklose wrote:
> It '*may* return true' (if the double is of the form 'x.0').

Agreed.  Sending a doc to you and the rest of the dart2js team shortly... we
were trying to keep the message short.  I realize that "will"->"may" would fix
it, but I'm not sure that having ambiguity in the message like that would be a
good thing.

Powered by Google App Engine
This is Rietveld 408576698