|
|
Implement import scope
Implement the new scope rule for imports.
- Imported identifiers are in a scope that is shadowed
by the importing library's top-level scope.
- Conflicting names imported from different libraries
are not an error unless the name is referenced.
- Conflicting type names are only an error in checked mode.
In a follow-on change, I'll remove the "imported_into" pointers in libraries. They are no longer needed.
Issue 2945
Committed: https://code.google.com/p/dart/source/detail?r=10923
Total comments: 14
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+312 lines, -338 lines) |
Patch |
 |
M |
runtime/vm/class_finalizer.cc
|
View
|
1
2
|
1 chunk |
+0 lines, -7 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/dart_api_impl_test.cc
|
View
|
1
2
|
5 chunks |
+47 lines, -117 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/object.cc
|
View
|
1
2
|
2 chunks |
+5 lines, -16 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/parser.h
|
View
|
1
2
|
2 chunks |
+25 lines, -6 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/parser.cc
|
View
|
1
2
|
14 chunks |
+208 lines, -105 lines |
0 comments
|
Download
|
 |
M |
tests/co19/co19-runtime.status
|
View
|
1
2
|
4 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
tests/language/library1_negative_test.dart
|
View
|
1
2
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
D |
tests/language/library2_negative_test.dart
|
View
|
1
2
|
1 chunk |
+0 lines, -14 lines |
0 comments
|
Download
|
 |
D |
tests/language/library3_negative_test.dart
|
View
|
1
2
|
1 chunk |
+0 lines, -18 lines |
0 comments
|
Download
|
 |
D |
tests/language/library4_negative_test.dart
|
View
|
1
2
|
1 chunk |
+0 lines, -14 lines |
0 comments
|
Download
|
 |
D |
tests/language/library5_negative_test.dart
|
View
|
1
2
|
1 chunk |
+0 lines, -14 lines |
0 comments
|
Download
|
 |
A |
tests/language/library6.dart
|
View
|
|
1 chunk |
+17 lines, -0 lines |
0 comments
|
Download
|
 |
D |
tests/language/library6_negative_test.dart
|
View
|
1
2
|
1 chunk |
+0 lines, -17 lines |
0 comments
|
Download
|
 |
M |
tests/language/prefix3_negative_test.dart
|
View
|
1
2
|
1 chunk |
+2 lines, -5 lines |
0 comments
|
Download
|
 |
M |
tests/language/pseudo_kw_illegal_test.dart
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
Total messages: 3 (0 generated)
|