Skip to content

Commit 6e285cf

Browse files
committed
Tests
1 parent c948a07 commit 6e285cf

38 files changed

+498
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module Module
2+
3+
(fun _ -> )
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
ImplFile
2+
(ParsedImplFileInput
3+
("/root/Expression/Lambda - Missing expr 01.fs", false,
4+
QualifiedNameOfFile Module, [], [],
5+
[SynModuleOrNamespace
6+
([Module], false, NamedModule,
7+
[Expr
8+
(Paren
9+
(Lambda
10+
(false, false,
11+
SimplePats
12+
([Id (_arg1, None, true, false, false, (3,5--3,6))],
13+
(3,5--3,6)),
14+
ArbitraryAfterError ("anonLambdaExpr2", (3,9--3,9)),
15+
Some
16+
([Wild (3,5--3,6)],
17+
ArbitraryAfterError ("anonLambdaExpr2", (3,9--3,9))),
18+
(3,1--3,9), { ArrowRange = Some (3,7--3,9) }), (3,0--3,1),
19+
Some (3,10--3,11), (3,0--3,11)), (3,0--3,11))],
20+
PreXmlDoc ((1,0), FSharp.Compiler.Xml.XmlDocCollector), [], None,
21+
(1,0--3,11), { LeadingKeyword = Module (1,0--1,6) })], (true, true),
22+
{ ConditionalDirectives = []
23+
CodeComments = [] }, set []))
24+
25+
(3,1)-(3,9) parse error Missing function body
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module Module
2+
3+
fun _ ->
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
ImplFile
2+
(ParsedImplFileInput
3+
("/root/Expression/Lambda - Missing expr 02.fs", false,
4+
QualifiedNameOfFile Module, [], [],
5+
[SynModuleOrNamespace
6+
([Module], false, NamedModule,
7+
[Expr
8+
(Lambda
9+
(false, false,
10+
SimplePats
11+
([Id (_arg1, None, true, false, false, (3,4--3,5))],
12+
(3,4--3,5)),
13+
ArbitraryAfterError ("anonLambdaExpr2", (3,8--3,8)),
14+
Some
15+
([Wild (3,4--3,5)],
16+
ArbitraryAfterError ("anonLambdaExpr2", (3,8--3,8))),
17+
(3,0--3,8), { ArrowRange = Some (3,6--3,8) }), (3,0--3,8))],
18+
PreXmlDoc ((1,0), FSharp.Compiler.Xml.XmlDocCollector), [], None,
19+
(1,0--3,8), { LeadingKeyword = Module (1,0--1,6) })], (true, true),
20+
{ ConditionalDirectives = []
21+
CodeComments = [] }, set []))
22+
23+
(4,0)-(4,0) parse warning Possible incorrect indentation: this token is offside of context started at position (1:1). Try indenting this token further or using standard formatting conventions.
24+
(3,0)-(3,8) parse error Missing function body
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module Module
2+
3+
(fun _ -> ())
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
ImplFile
2+
(ParsedImplFileInput
3+
("/root/Expression/Lambda 01.fs", false, QualifiedNameOfFile Module, [], [],
4+
[SynModuleOrNamespace
5+
([Module], false, NamedModule,
6+
[Expr
7+
(Paren
8+
(Lambda
9+
(false, false,
10+
SimplePats
11+
([Id (_arg1, None, true, false, false, (3,5--3,6))],
12+
(3,5--3,6)), Const (Unit, (3,10--3,12)),
13+
Some ([Wild (3,5--3,6)], Const (Unit, (3,10--3,12))),
14+
(3,1--3,12), { ArrowRange = Some (3,7--3,9) }), (3,0--3,1),
15+
Some (3,12--3,13), (3,0--3,13)), (3,0--3,13))],
16+
PreXmlDoc ((1,0), FSharp.Compiler.Xml.XmlDocCollector), [], None,
17+
(1,0--3,13), { LeadingKeyword = Module (1,0--1,6) })], (true, true),
18+
{ ConditionalDirectives = []
19+
CodeComments = [] }, set []))
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module Module
2+
3+
fun _ -> ()
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
ImplFile
2+
(ParsedImplFileInput
3+
("/root/Expression/Lambda 02.fs", false, QualifiedNameOfFile Module, [], [],
4+
[SynModuleOrNamespace
5+
([Module], false, NamedModule,
6+
[Expr
7+
(Lambda
8+
(false, false,
9+
SimplePats
10+
([Id (_arg1, None, true, false, false, (3,4--3,5))],
11+
(3,4--3,5)), Const (Unit, (3,9--3,11)),
12+
Some ([Wild (3,4--3,5)], Const (Unit, (3,9--3,11))),
13+
(3,0--3,11), { ArrowRange = Some (3,6--3,8) }), (3,0--3,11))],
14+
PreXmlDoc ((1,0), FSharp.Compiler.Xml.XmlDocCollector), [], None,
15+
(1,0--3,11), { LeadingKeyword = Module (1,0--1,6) })], (true, true),
16+
{ ConditionalDirectives = []
17+
CodeComments = [] }, set []))
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module Module
2+
3+
[ for x in [] -> () ]
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
ImplFile
2+
(ParsedImplFileInput
3+
("/root/Expression/List - Comprehension 01.fs", false,
4+
QualifiedNameOfFile Module, [], [],
5+
[SynModuleOrNamespace
6+
([Module], false, NamedModule,
7+
[Expr
8+
(ArrayOrListComputed
9+
(false,
10+
ForEach
11+
(Yes (3,2--3,5), Yes (3,8--3,10), SeqExprOnly true, true,
12+
Named (SynIdent (x, None), false, None, (3,6--3,7)),
13+
ArrayOrList (false, [], (3,11--3,13)),
14+
YieldOrReturn
15+
((true, false), Const (Unit, (3,17--3,19)), (3,14--3,19)),
16+
(3,2--3,19)), (3,0--3,21)), (3,0--3,21))],
17+
PreXmlDoc ((1,0), FSharp.Compiler.Xml.XmlDocCollector), [], None,
18+
(1,0--3,21), { LeadingKeyword = Module (1,0--1,6) })], (true, true),
19+
{ ConditionalDirectives = []
20+
CodeComments = [] }, set []))

0 commit comments

Comments
 (0)