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

Issue 1062723002: Implement the new '?.' operator in analyzer. (Closed)

Created:
5 years, 8 months ago by Paul Berry
Modified:
5 years, 8 months ago
CC:
reviews_dartlang.org
Target Ref:
refs/remotes/git-svn
Visibility:
Public.

Description

Implement the new '?.' operator in analyzer. As in r44802, the new operator is only accepted by the tokenizer if the command-line option "--enable-null-aware-operators" is supplied. Only static analysis of '?.' is implemented; however, the tests in tests/language will verify behavior once it is implemented. R=brianwilkerson@google.com Committed: https://code.google.com/p/dart/source/detail?r=44907

Patch Set 1 #

Patch Set 2 : Bump analyzer version. #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+456 lines, -28 lines) Patch
M pkg/analyzer/lib/src/generated/ast.dart View 1 chunk +4 lines, -1 line 2 comments Download
M pkg/analyzer/lib/src/generated/element_resolver.dart View 6 chunks +16 lines, -10 lines 4 comments Download
M pkg/analyzer/lib/src/generated/error_verifier.dart View 3 chunks +6 lines, -3 lines 0 comments Download
M pkg/analyzer/lib/src/generated/parser.dart View 6 chunks +24 lines, -9 lines 0 comments Download
M pkg/analyzer/lib/src/generated/static_type_analyzer.dart View 1 chunk +6 lines, -2 lines 0 comments Download
M pkg/analyzer/lib/src/generated/testing/ast_factory.dart View 1 chunk +3 lines, -2 lines 0 comments Download
M pkg/analyzer/pubspec.yaml View 1 1 chunk +1 line, -1 line 2 comments Download
M pkg/analyzer/test/generated/ast_test.dart View 1 chunk +5 lines, -0 lines 0 comments Download
M pkg/analyzer/test/generated/non_error_resolver_test.dart View 2 chunks +30 lines, -0 lines 0 comments Download
M pkg/analyzer/test/generated/parser_test.dart View 1 chunk +12 lines, -0 lines 0 comments Download
M pkg/analyzer/test/generated/static_type_warning_code_test.dart View 3 chunks +48 lines, -0 lines 2 comments Download
A tests/language/conditional_access_helper.dart View 1 chunk +16 lines, -0 lines 0 comments Download
A tests/language/conditional_method_invocation_test.dart View 1 chunk +60 lines, -0 lines 0 comments Download
A tests/language/conditional_property_access_test.dart View 1 chunk +55 lines, -0 lines 0 comments Download
A tests/language/conditional_property_assignment_test.dart View 1 chunk +93 lines, -0 lines 0 comments Download
M tests/language/if_null_assignment_behavior_test.dart View 1 chunk +7 lines, -0 lines 0 comments Download
M tests/language/if_null_assignment_static_test.dart View 1 chunk +16 lines, -0 lines 0 comments Download
M tests/language/language.status View 1 chunk +3 lines, -0 lines 0 comments Download
M tests/language/language_analyzer.status View 1 chunk +3 lines, -0 lines 0 comments Download
M tests/language/language_dart2js.status View 1 chunk +4 lines, -0 lines 0 comments Download
A tests/language/super_conditional_operator_test.dart View 1 chunk +44 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
Paul Berry
5 years, 8 months ago (2015-04-05 18:45:42 UTC) #2
Brian Wilkerson
LGTM https://codereview.chromium.org/1062723002/diff/20001/pkg/analyzer/lib/src/generated/ast.dart File pkg/analyzer/lib/src/generated/ast.dart (right): https://codereview.chromium.org/1062723002/diff/20001/pkg/analyzer/lib/src/generated/ast.dart#newcode18159 pkg/analyzer/lib/src/generated/ast.dart:18159: if (node.target != null) { Seems like it ...
5 years, 8 months ago (2015-04-05 19:55:45 UTC) #3
Paul Berry
https://codereview.chromium.org/1062723002/diff/20001/pkg/analyzer/lib/src/generated/ast.dart File pkg/analyzer/lib/src/generated/ast.dart (right): https://codereview.chromium.org/1062723002/diff/20001/pkg/analyzer/lib/src/generated/ast.dart#newcode18159 pkg/analyzer/lib/src/generated/ast.dart:18159: if (node.target != null) { On 2015/04/05 19:55:45, Brian ...
5 years, 8 months ago (2015-04-05 20:49:43 UTC) #4
Paul Berry
5 years, 8 months ago (2015-04-05 20:59:32 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as 44907 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698