|
|
Support correct factory syntax in the VM as decribed in the spec.
Change the default value of --silent_warnings from true to false, so that
warnings are visible when legacy factory syntax is used.
In order to facilitate transition of libraries and user programs, legacy factory
syntax is still supported by 2 workarounds, but warnings are printed.
The first workaround allows the factory clause to omit the type
parameter list, which otherwise has to match exactly with the list of
type parameters in the factory class declaration.
The second workaround allows a factory method to omit the type
parameter list. In that case, the type parameter list of the enclosing
class is used instead.
Workarounds will be removed to enforce correct factory syntax at a later time.
Committed: https://code.google.com/p/dart/source/detail?r=1595
Total comments: 16
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+512 lines, -301 lines) |
Patch |
 |
M |
runtime/vm/ast.h
|
View
|
1
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/class_finalizer.h
|
View
|
1
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/class_finalizer.cc
|
View
|
1
|
10 chunks |
+153 lines, -48 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/object.h
|
View
|
1
|
2 chunks |
+17 lines, -4 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/object.cc
|
View
|
1
|
3 chunks |
+35 lines, -7 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/object_test.cc
|
View
|
1
|
1 chunk |
+3 lines, -5 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/parser.h
|
View
|
1
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/parser.cc
|
View
|
1
|
75 chunks |
+252 lines, -193 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/raw_object.h
|
View
|
1
|
2 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
 |
M |
tests/language/language.status
|
View
|
1
|
6 chunks |
+13 lines, -15 lines |
0 comments
|
Download
|
 |
A |
tests/language/src/FBoundedQuantificationTest.dart
|
View
|
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
 |
M |
tests/language/src/TypeVariableBoundsTest.dart
|
View
|
1
|
3 chunks |
+9 lines, -16 lines |
0 comments
|
Download
|
 |
M |
tests/language/src/TypeVariableScopeTest.dart
|
View
|
1
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
Total messages: 3 (0 generated)
|