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

Issue 10939027: Issue 5116. Support both 'dynamic' and 'Dynamic' (Closed)

Created:
8 years, 3 months ago by scheglov
Modified:
8 years, 3 months ago
Reviewers:
Brian Wilkerson
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 8

Patch Set 2 : Use DartParser.DYNAMIC_KEYWORD #

Messages

Total messages: 3 (0 generated)
scheglov
8 years, 3 months ago (2012-09-19 04:37:16 UTC) #1
Brian Wilkerson
LGTM https://codereview.chromium.org/10939027/diff/1/compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java File compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java (right): https://codereview.chromium.org/10939027/diff/1/compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java#newcode217 compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java:217: if (DartParser.PSEUDO_KEYWORDS_SET.contains(name) && !"dynamic".equals(name) && !"Dynamic".equals(name)) { It ...
8 years, 3 months ago (2012-09-19 13:17:49 UTC) #2
scheglov
8 years, 3 months ago (2012-09-19 15:39:57 UTC) #3
https://codereview.chromium.org/10939027/diff/1/compiler/java/com/google/dart...
File compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java
(right):

https://codereview.chromium.org/10939027/diff/1/compiler/java/com/google/dart...
compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java:217: if
(DartParser.PSEUDO_KEYWORDS_SET.contains(name) && !"dynamic".equals(name) &&
!"Dynamic".equals(name)) {
On 2012/09/19 13:17:49, Brian Wilkerson wrote:
> It would be better to use the constants defined in DartParser than literal
> strings.

Done.

https://codereview.chromium.org/10939027/diff/1/compiler/java/com/google/dart...
compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java:274: if
(Elements.isIdentifierName(identifier, "dynamic")) {
On 2012/09/19 13:17:49, Brian Wilkerson wrote:
> It would be better to use the constants defined in DartParser.

Done.

https://codereview.chromium.org/10939027/diff/1/editor/tools/plugins/com.goog...
File
editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/code/ExtractUtils.java
(right):

https://codereview.chromium.org/10939027/diff/1/editor/tools/plugins/com.goog...
editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/code/ExtractUtils.java:111:
if ("dynamic".equals(typeSource)) {
On 2012/09/19 13:17:49, Brian Wilkerson wrote:
> It would be better to use the constants defined in DartParser.

Done.

Powered by Google App Engine
This is Rietveld 408576698