-
Notifications
You must be signed in to change notification settings - Fork 802
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parser: rewrite tuple expr recovery to allow better items recovery (#…
- Loading branch information
1 parent
448ab61
commit 024b98d
Showing
48 changed files
with
692 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module Module | ||
|
||
a = b |
21 changes: 21 additions & 0 deletions
21
tests/service/data/SyntaxTree/Expression/Binary - Eq 01.fs.bsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
ImplFile | ||
(ParsedImplFileInput | ||
("/root/Expression/Binary - Eq 01.fs", false, QualifiedNameOfFile Module, | ||
[], [], | ||
[SynModuleOrNamespace | ||
([Module], false, NamedModule, | ||
[Expr | ||
(App | ||
(NonAtomic, false, | ||
App | ||
(NonAtomic, true, | ||
LongIdent | ||
(false, | ||
SynLongIdent | ||
([op_Equality], [], [Some (OriginalNotation "=")]), | ||
None, (3,2--3,3)), Ident a, (3,0--3,3)), Ident b, | ||
(3,0--3,5)), (3,0--3,5))], | ||
PreXmlDoc ((1,0), FSharp.Compiler.Xml.XmlDocCollector), [], None, | ||
(1,0--3,5), { LeadingKeyword = Module (1,0--1,6) })], (true, true), | ||
{ ConditionalDirectives = [] | ||
CodeComments = [] }, set [])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module Module | ||
|
||
M(a = b) |
25 changes: 25 additions & 0 deletions
25
tests/service/data/SyntaxTree/Expression/Binary - Eq 02.fs.bsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
ImplFile | ||
(ParsedImplFileInput | ||
("/root/Expression/Binary - Eq 02.fs", false, QualifiedNameOfFile Module, | ||
[], [], | ||
[SynModuleOrNamespace | ||
([Module], false, NamedModule, | ||
[Expr | ||
(App | ||
(Atomic, false, Ident M, | ||
Paren | ||
(App | ||
(NonAtomic, false, | ||
App | ||
(NonAtomic, true, | ||
LongIdent | ||
(false, | ||
SynLongIdent | ||
([op_Equality], [], [Some (OriginalNotation "=")]), | ||
None, (3,4--3,5)), Ident a, (3,2--3,5)), Ident b, | ||
(3,2--3,7)), (3,1--3,2), Some (3,7--3,8), (3,1--3,8)), | ||
(3,0--3,8)), (3,0--3,8))], | ||
PreXmlDoc ((1,0), FSharp.Compiler.Xml.XmlDocCollector), [], None, | ||
(1,0--3,8), { LeadingKeyword = Module (1,0--1,6) })], (true, true), | ||
{ ConditionalDirectives = [] | ||
CodeComments = [] }, set [])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module Module | ||
|
||
M(a = ) |
28 changes: 28 additions & 0 deletions
28
tests/service/data/SyntaxTree/Expression/Binary - Eq 03.fs.bsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
ImplFile | ||
(ParsedImplFileInput | ||
("/root/Expression/Binary - Eq 03.fs", false, QualifiedNameOfFile Module, | ||
[], [], | ||
[SynModuleOrNamespace | ||
([Module], false, NamedModule, | ||
[Expr | ||
(App | ||
(Atomic, false, Ident M, | ||
Paren | ||
(App | ||
(NonAtomic, false, | ||
App | ||
(NonAtomic, true, | ||
LongIdent | ||
(false, | ||
SynLongIdent | ||
([op_Equality], [], [Some (OriginalNotation "=")]), | ||
None, (3,4--3,5)), Ident a, (3,2--3,5)), | ||
ArbitraryAfterError ("declExprInfixEquals", (3,5--3,5)), | ||
(3,2--3,5)), (3,1--3,2), Some (3,6--3,7), (3,1--3,7)), | ||
(3,0--3,7)), (3,0--3,7))], | ||
PreXmlDoc ((1,0), FSharp.Compiler.Xml.XmlDocCollector), [], None, | ||
(1,0--3,7), { LeadingKeyword = Module (1,0--1,6) })], (true, true), | ||
{ ConditionalDirectives = [] | ||
CodeComments = [] }, set [])) | ||
|
||
(3,4)-(3,5) parse error Unexpected token '=' or incomplete expression |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module Module | ||
|
||
M(a = 1, b =) |
43 changes: 43 additions & 0 deletions
43
tests/service/data/SyntaxTree/Expression/Binary - Eq 04.fs.bsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
ImplFile | ||
(ParsedImplFileInput | ||
("/root/Expression/Binary - Eq 04.fs", false, QualifiedNameOfFile Module, | ||
[], [], | ||
[SynModuleOrNamespace | ||
([Module], false, NamedModule, | ||
[Expr | ||
(App | ||
(Atomic, false, Ident M, | ||
Paren | ||
(Tuple | ||
(false, | ||
[App | ||
(NonAtomic, false, | ||
App | ||
(NonAtomic, true, | ||
LongIdent | ||
(false, | ||
SynLongIdent | ||
([op_Equality], [], | ||
[Some (OriginalNotation "=")]), None, | ||
(3,4--3,5)), Ident a, (3,2--3,5)), | ||
Const (Int32 1, (3,6--3,7)), (3,2--3,7)); | ||
App | ||
(NonAtomic, false, | ||
App | ||
(NonAtomic, true, | ||
LongIdent | ||
(false, | ||
SynLongIdent | ||
([op_Equality], [], | ||
[Some (OriginalNotation "=")]), None, | ||
(3,11--3,12)), Ident b, (3,9--3,12)), | ||
ArbitraryAfterError | ||
("declExprInfixEquals", (3,12--3,12)), (3,9--3,12))], | ||
[(3,7--3,8)], (3,2--3,12)), (3,1--3,2), Some (3,12--3,13), | ||
(3,1--3,13)), (3,0--3,13)), (3,0--3,13))], | ||
PreXmlDoc ((1,0), FSharp.Compiler.Xml.XmlDocCollector), [], None, | ||
(1,0--3,13), { LeadingKeyword = Module (1,0--1,6) })], (true, true), | ||
{ ConditionalDirectives = [] | ||
CodeComments = [] }, set [])) | ||
|
||
(3,11)-(3,12) parse error Unexpected token '=' or incomplete expression |
Oops, something went wrong.