|
Compile time error if name is used before variable is declared
Implement proper semantics if a name has been referenced in a
block and later a variable with that same name is declared.
Fix library code that was wrong.
Add new language test, delete a couple of tests that are
outdated, file co19 bug 649.
Dart2js and dart2dart are not yet implementing these compile-time
errors.
R=iposva@google.com
Committed: https://code.google.com/p/dart/source/detail?r=29770
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+193 lines, -83 lines) |
Patch |
|
M |
runtime/lib/growable_array.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
runtime/lib/string_patch.dart
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
runtime/lib/typed_data.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
runtime/vm/parser.cc
|
View
|
|
3 chunks |
+27 lines, -2 lines |
2 comments
|
Download
|
|
M |
runtime/vm/scopes.h
|
View
|
|
4 chunks |
+27 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/vm/scopes.cc
|
View
|
|
2 chunks |
+44 lines, -1 line |
2 comments
|
Download
|
|
M |
tests/co19/co19-co19.status
|
View
|
|
2 chunks |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
tests/co19/co19-dart2dart.status
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
tests/co19/co19-dart2js.status
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
D |
tests/language/bailout3_test.dart
|
View
|
|
1 chunk |
+0 lines, -41 lines |
2 comments
|
Download
|
|
M |
tests/language/language_analyzer.status
|
View
|
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
|
M |
tests/language/language_analyzer2.status
|
View
|
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
|
M |
tests/language/language_dart2js.status
|
View
|
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
|
D |
tests/language/prefix9_test.dart
|
View
|
|
1 chunk |
+0 lines, -26 lines |
0 comments
|
Download
|
|
A |
tests/language/ref_before_declaration_test.dart
|
View
|
|
1 chunk |
+81 lines, -0 lines |
0 comments
|
Download
|
Total messages: 5 (0 generated)
|