|
|
Fix for bug 1229: Unary operator plus is not allowed ... except for literals.
Add tests for incorrect literals, e.g. "+ 5".
Added a temporary token kTIGHTADD that represents an ADD not terminated by a whitespace. It is temporary and eliminated in the parser (code generator ot AST do not see it). It is used to recognize correct literals.
Committed: https://code.google.com/p/dart/source/detail?r=3745
Total comments: 11
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+58 lines, -13 lines) |
Patch |
 |
M |
runtime/lib/math.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/ast.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/bigint_operations.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/parser.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+16 lines, -3 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/scanner.h
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/scanner.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+8 lines, -1 line |
0 comments
|
Download
|
 |
M |
runtime/vm/scanner_test.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/token.h
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
tests/language/language.status
|
View
|
1
2
3
4
5
6
7
8
9
|
4 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
tests/language/language-leg.status
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
A |
tests/language/src/LiteralUnaryPlusTest.dart
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+15 lines, -0 lines |
0 comments
|
Download
|
Total messages: 6 (0 generated)
|