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

Issue 1255293005: Fix analyzer interpretation of 'ClassName?.staticMember'. (Closed)

Created:
5 years, 4 months ago by Paul Berry
Modified:
5 years, 4 months ago
Reviewers:
scheglov
CC:
reviews_dartlang.org, hausner, Siggi Cherem (dart-lang)
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fix analyzer interpretation of 'ClassName?.staticMember'. Previously, trying to access a static member of a class using '?.' was not allowed. But the spec was changed in b11670f89924c1961be8f93d00848c7fa9887f99 so that 'ClassName?.staticMember' is now equivalent to 'ClassName.staticMember'. This CL updates analyzer to follow the spec, and updates the tests in "tests/language" accordingly. VM and dart2js still need fixing (see #23794 and #23795). Fixes #23464. R=scheglov@google.com Committed: https://github.com/dart-lang/sdk/commit/0e98c581905bf0c5885c5b2dc4872921e95a7db0

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+275 lines, -88 lines) Patch
M pkg/analyzer/lib/src/generated/element_resolver.dart View 6 chunks +8 lines, -11 lines 0 comments Download
M pkg/analyzer/lib/src/generated/error_verifier.dart View 3 chunks +3 lines, -5 lines 0 comments Download
M pkg/analyzer/test/generated/non_error_resolver_test.dart View 4 chunks +28 lines, -11 lines 0 comments Download
M pkg/analyzer/test/generated/static_type_warning_code_test.dart View 3 chunks +10 lines, -27 lines 0 comments Download
M tests/language/conditional_access_helper.dart View 1 chunk +22 lines, -2 lines 0 comments Download
M tests/language/conditional_method_invocation_test.dart View 3 chunks +14 lines, -9 lines 0 comments Download
M tests/language/conditional_property_access_test.dart View 3 chunks +13 lines, -9 lines 0 comments Download
M tests/language/conditional_property_assignment_test.dart View 4 chunks +20 lines, -11 lines 0 comments Download
M tests/language/conditional_property_increment_decrement_test.dart View 2 chunks +36 lines, -2 lines 0 comments Download
M tests/language/if_null_assignment_behavior_test.dart View 1 chunk +10 lines, -0 lines 0 comments Download
M tests/language/language.status View 1 chunk +55 lines, -0 lines 0 comments Download
M tests/language/language_dart2js.status View 1 chunk +56 lines, -0 lines 0 comments Download
M tests/language/nullaware_opt_test.dart View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 4 (1 generated)
Paul Berry
5 years, 4 months ago (2015-07-28 15:41:05 UTC) #2
scheglov
LGTM
5 years, 4 months ago (2015-07-28 16:47:30 UTC) #3
Paul Berry
5 years, 4 months ago (2015-07-28 16:49:46 UTC) #4
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
0e98c581905bf0c5885c5b2dc4872921e95a7db0 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698