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

Issue 253493010: Change the error for importing a deferred library with a top-level 'loadLibrary' to being a hint. A… (Closed)

Created:
6 years, 7 months ago by jwren
Modified:
6 years, 7 months ago
CC:
reviews_dartlang.org, ricow1
Visibility:
Public.

Description

Change the error for importing a deferred library with a top-level 'loadLibrary' to being a hint. Also, the logic for checking for the 'loadLibrary' from the element model into the hints phase (BestPracticesVerifier). R=brianwilkerson@google.com, scheglov@google.com Committed: https://code.google.com/p/dart/source/detail?r=35495

Patch Set 1 #

Total comments: 8

Patch Set 2 : Code Review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -83 lines) Patch
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/element/FunctionElement.java View 1 1 chunk +12 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/CompileTimeErrorCode.java View 2 chunks +0 lines, -9 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/HintCode.java View 1 chunk +6 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/hint/BestPracticesVerifier.java View 1 3 chunks +32 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/ElementResolver.java View 1 5 chunks +6 lines, -16 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/StaticTypeAnalyzer.java View 1 2 chunks +2 lines, -1 line 0 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/verifier/ErrorVerifier.java View 1 6 chunks +4 lines, -29 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/CompileTimeErrorCodeTest.java View 1 chunk +0 lines, -14 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/HintCodeTest.java View 1 chunk +14 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java View 1 chunk +0 lines, -13 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonHintCodeTest.java View 1 chunk +13 lines, -0 lines 0 comments Download
M tests/language/language_analyzer.status View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
jwren
6 years, 7 months ago (2014-04-28 17:37:00 UTC) #1
scheglov
LGTM https://codereview.chromium.org/253493010/diff/1/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/hint/BestPracticesVerifier.java File editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/hint/BestPracticesVerifier.java (right): https://codereview.chromium.org/253493010/diff/1/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/hint/BestPracticesVerifier.java#newcode97 editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/hint/BestPracticesVerifier.java:97: CompilationUnitElement[] parts = libraryElement.getParts(); You could use getUnits() ...
6 years, 7 months ago (2014-04-28 17:46:43 UTC) #2
jwren
https://codereview.chromium.org/253493010/diff/1/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/hint/BestPracticesVerifier.java File editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/hint/BestPracticesVerifier.java (right): https://codereview.chromium.org/253493010/diff/1/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/hint/BestPracticesVerifier.java#newcode97 editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/hint/BestPracticesVerifier.java:97: CompilationUnitElement[] parts = libraryElement.getParts(); On 2014/04/28 17:46:43, scheglov wrote: ...
6 years, 7 months ago (2014-04-28 18:07:02 UTC) #3
Brian Wilkerson
LGTM once the utility methods and constants have been moved back. https://codereview.chromium.org/253493010/diff/1/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/element/CompilationUnitElement.java File editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/element/CompilationUnitElement.java (left): ...
6 years, 7 months ago (2014-04-28 19:38:33 UTC) #4
jwren
https://codereview.chromium.org/253493010/diff/1/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/element/CompilationUnitElement.java File editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/element/CompilationUnitElement.java (left): https://codereview.chromium.org/253493010/diff/1/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/element/CompilationUnitElement.java#oldcode107 editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/element/CompilationUnitElement.java:107: public boolean hasLoadLibraryFunction(); Done. I thought we talked about ...
6 years, 7 months ago (2014-04-28 20:08:55 UTC) #5
jwren
6 years, 7 months ago (2014-04-28 20:14:09 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 manually as r35495 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698