|
Properly resolve top-level setters
Fixes issue 4386.
When converting a getter to a setter (converting a right-hand
side expression to a left-hand side, assignable entity),
we need to know where to look for the setter function.
Top-level setters need to be resolved in the library or prefix
scope in which the getter was found.
R=regis@google.com
Committed: https://code.google.com/p/dart/source/detail?r=45316
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+248 lines, -65 lines) |
Patch |
|
M |
runtime/vm/ast.h
|
View
|
1
2
|
7 chunks |
+39 lines, -2 lines |
0 comments
|
Download
|
|
M |
runtime/vm/ast.cc
|
View
|
1
2
|
2 chunks |
+92 lines, -10 lines |
2 comments
|
Download
|
|
M |
runtime/vm/ast_transformer.cc
|
View
|
1
2
|
2 chunks |
+15 lines, -6 lines |
2 comments
|
Download
|
|
M |
runtime/vm/flow_graph_builder.cc
|
View
|
1
2
|
1 chunk |
+1 line, -4 lines |
0 comments
|
Download
|
|
M |
runtime/vm/object.cc
|
View
|
1
2
|
3 chunks |
+18 lines, -2 lines |
0 comments
|
Download
|
|
M |
runtime/vm/parser.h
|
View
|
1
2
|
2 chunks |
+5 lines, -6 lines |
0 comments
|
Download
|
|
M |
runtime/vm/parser.cc
|
View
|
1
2
|
12 chunks |
+44 lines, -35 lines |
0 comments
|
Download
|
|
M |
tests/language/getter_setter_in_lib.dart
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
A |
tests/language/getter_setter_in_lib2.dart
|
View
|
1
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
|
A |
tests/language/getter_setter_in_lib3.dart
|
View
|
1
|
1 chunk |
+11 lines, -0 lines |
0 comments
|
Download
|
|
M |
tests/language/getter_setter_in_lib_test.dart
|
View
|
1
2
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
|
M |
tests/language/language.status
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
tests/language/language_analyzer.status
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
tests/language/language_analyzer2.status
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
tests/language/language_dart2js.status
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
Total messages: 5 (1 generated)
|