-
Notifications
You must be signed in to change notification settings - Fork 830
Parser: recover on unfinished nested modules #15402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
|
|
||
| neg41.fs(3,1,3,5): parse error FS0010: Unexpected keyword 'type' in definition. Expected '=' or other token. | ||
| neg41.fs(2,20,3,1): parse error FS0010: Incomplete structured construct at or before this point in definition. Expected '=' or other token. |
This file contains hidden or 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 |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
|
|
||
| neg42.fsi(3,1,3,5): parse error FS0010: Unexpected keyword 'type' in signature file. Expected ':', '=' or other token. | ||
| neg42.fsi(2,20,3,1): parse error FS0010: Incomplete structured construct at or before this point in signature file. Expected ':', '=' or other token. |
5 changes: 5 additions & 0 deletions
5
tests/service/data/SyntaxTree/ModuleOrNamespace/Nested module 03.fs
This file contains hidden or 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,5 @@ | ||
| module Module | ||
|
|
||
| module A | ||
|
|
||
| () |
20 changes: 20 additions & 0 deletions
20
tests/service/data/SyntaxTree/ModuleOrNamespace/Nested module 03.fs.bsl
This file contains hidden or 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,20 @@ | ||
| ImplFile | ||
| (ParsedImplFileInput | ||
| ("/root/ModuleOrNamespace/Nested module 03.fs", false, | ||
| QualifiedNameOfFile Module, [], [], | ||
| [SynModuleOrNamespace | ||
| ([Module], false, NamedModule, | ||
| [NestedModule | ||
| (SynComponentInfo | ||
| ([], None, [], [A], | ||
| PreXmlDoc ((3,0), FSharp.Compiler.Xml.XmlDocCollector), false, | ||
| None, (3,0--3,8)), false, [], false, (3,0--3,8), | ||
| { ModuleKeyword = Some (3,0--3,6) | ||
| EqualsRange = None }); | ||
| Expr (Const (Unit, (5,0--5,2)), (5,0--5,2))], | ||
| PreXmlDoc ((1,0), FSharp.Compiler.Xml.XmlDocCollector), [], None, | ||
| (1,0--5,2), { LeadingKeyword = Module (1,0--1,6) })], (true, true), | ||
| { ConditionalDirectives = [] | ||
| CodeComments = [] }, set [])) | ||
|
|
||
| (3,9)-(5,0) parse error Incomplete structured construct at or before this point in definition. Expected '=' or other token. |
5 changes: 5 additions & 0 deletions
5
tests/service/data/SyntaxTree/ModuleOrNamespace/Nested module 04.fs
This file contains hidden or 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,5 @@ | ||
| module Module | ||
|
|
||
| module | ||
|
|
||
| () |
20 changes: 20 additions & 0 deletions
20
tests/service/data/SyntaxTree/ModuleOrNamespace/Nested module 04.fs.bsl
This file contains hidden or 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,20 @@ | ||
| ImplFile | ||
| (ParsedImplFileInput | ||
| ("/root/ModuleOrNamespace/Nested module 04.fs", false, | ||
| QualifiedNameOfFile Module, [], [], | ||
| [SynModuleOrNamespace | ||
| ([Module], false, NamedModule, | ||
| [NestedModule | ||
| (SynComponentInfo | ||
| ([], None, [], [], | ||
| PreXmlDoc ((3,0), FSharp.Compiler.Xml.XmlDocCollector), false, | ||
| None, (3,0--5,0)), false, [], false, (3,0--5,0), | ||
| { ModuleKeyword = Some (3,0--3,6) | ||
| EqualsRange = None }); | ||
| Expr (Const (Unit, (5,0--5,2)), (5,0--5,2))], | ||
| PreXmlDoc ((1,0), FSharp.Compiler.Xml.XmlDocCollector), [], None, | ||
| (1,0--5,2), { LeadingKeyword = Module (1,0--1,6) })], (true, true), | ||
| { ConditionalDirectives = [] | ||
| CodeComments = [] }, set [])) | ||
|
|
||
| (3,7)-(5,0) parse error Incomplete structured construct at or before this point in definition. Expected '=' or other token. |
5 changes: 5 additions & 0 deletions
5
tests/service/data/SyntaxTree/ModuleOrNamespace/Nested module 05.fs
This file contains hidden or 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,5 @@ | ||
| module Module | ||
|
|
||
| module rec | ||
|
|
||
| () |
20 changes: 20 additions & 0 deletions
20
tests/service/data/SyntaxTree/ModuleOrNamespace/Nested module 05.fs.bsl
This file contains hidden or 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,20 @@ | ||
| ImplFile | ||
| (ParsedImplFileInput | ||
| ("/root/ModuleOrNamespace/Nested module 05.fs", false, | ||
| QualifiedNameOfFile Module, [], [], | ||
| [SynModuleOrNamespace | ||
| ([Module], false, NamedModule, | ||
| [NestedModule | ||
| (SynComponentInfo | ||
| ([], None, [], [], | ||
| PreXmlDoc ((3,0), FSharp.Compiler.Xml.XmlDocCollector), false, | ||
| None, (3,0--5,0)), true, [], false, (3,0--5,0), | ||
| { ModuleKeyword = Some (3,0--3,6) | ||
| EqualsRange = None }); | ||
| Expr (Const (Unit, (5,0--5,2)), (5,0--5,2))], | ||
| PreXmlDoc ((1,0), FSharp.Compiler.Xml.XmlDocCollector), [], None, | ||
| (1,0--5,2), { LeadingKeyword = Module (1,0--1,6) })], (true, true), | ||
| { ConditionalDirectives = [] | ||
| CodeComments = [] }, set [])) | ||
|
|
||
| (3,11)-(5,0) parse error Incomplete structured construct at or before this point in definition. Expected '=' or other token. |
5 changes: 5 additions & 0 deletions
5
tests/service/data/SyntaxTree/ModuleOrNamespace/Nested module 06.fs
This file contains hidden or 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,5 @@ | ||
| module Module | ||
|
|
||
| module rec A | ||
|
|
||
| () |
20 changes: 20 additions & 0 deletions
20
tests/service/data/SyntaxTree/ModuleOrNamespace/Nested module 06.fs.bsl
This file contains hidden or 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,20 @@ | ||
| ImplFile | ||
| (ParsedImplFileInput | ||
| ("/root/ModuleOrNamespace/Nested module 06.fs", false, | ||
| QualifiedNameOfFile Module, [], [], | ||
| [SynModuleOrNamespace | ||
| ([Module], false, NamedModule, | ||
| [NestedModule | ||
| (SynComponentInfo | ||
| ([], None, [], [A], | ||
| PreXmlDoc ((3,0), FSharp.Compiler.Xml.XmlDocCollector), false, | ||
| None, (3,0--3,12)), true, [], false, (3,0--3,12), | ||
| { ModuleKeyword = Some (3,0--3,6) | ||
| EqualsRange = None }); | ||
| Expr (Const (Unit, (5,0--5,2)), (5,0--5,2))], | ||
| PreXmlDoc ((1,0), FSharp.Compiler.Xml.XmlDocCollector), [], None, | ||
| (1,0--5,2), { LeadingKeyword = Module (1,0--1,6) })], (true, true), | ||
| { ConditionalDirectives = [] | ||
| CodeComments = [] }, set [])) | ||
|
|
||
| (3,13)-(5,0) parse error Incomplete structured construct at or before this point in definition. Expected '=' or other token. |
6 changes: 6 additions & 0 deletions
6
tests/service/data/SyntaxTree/ModuleOrNamespace/Nested module 07.fs
This file contains hidden or 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,6 @@ | ||
| module Module | ||
|
|
||
| module A = | ||
| module | ||
|
|
||
| 2 |
27 changes: 27 additions & 0 deletions
27
tests/service/data/SyntaxTree/ModuleOrNamespace/Nested module 07.fs.bsl
This file contains hidden or 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,27 @@ | ||
| ImplFile | ||
| (ParsedImplFileInput | ||
| ("/root/ModuleOrNamespace/Nested module 07.fs", false, | ||
| QualifiedNameOfFile Module, [], [], | ||
| [SynModuleOrNamespace | ||
| ([Module], false, NamedModule, | ||
| [NestedModule | ||
| (SynComponentInfo | ||
| ([], None, [], [A], | ||
| PreXmlDoc ((3,0), FSharp.Compiler.Xml.XmlDocCollector), false, | ||
| None, (3,0--3,8)), false, | ||
| [NestedModule | ||
| (SynComponentInfo | ||
| ([], None, [], [], | ||
| PreXmlDoc ((4,4), FSharp.Compiler.Xml.XmlDocCollector), | ||
| false, None, (4,4--6,0)), false, [], false, (4,4--6,0), | ||
| { ModuleKeyword = Some (4,4--4,10) | ||
| EqualsRange = None })], false, (3,0--6,0), | ||
| { ModuleKeyword = Some (3,0--3,6) | ||
| EqualsRange = Some (3,9--3,10) }); | ||
| Expr (Const (Int32 2, (6,0--6,1)), (6,0--6,1))], | ||
| PreXmlDoc ((1,0), FSharp.Compiler.Xml.XmlDocCollector), [], None, | ||
| (1,0--6,1), { LeadingKeyword = Module (1,0--1,6) })], (true, true), | ||
| { ConditionalDirectives = [] | ||
| CodeComments = [] }, set [])) | ||
|
|
||
| (6,0)-(6,1) parse error Incomplete structured construct at or before this point in definition. Expected '=' or other token. |
6 changes: 6 additions & 0 deletions
6
tests/service/data/SyntaxTree/ModuleOrNamespace/Nested module 08.fs
This file contains hidden or 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,6 @@ | ||
| module Module | ||
|
|
||
| module A = | ||
| module B | ||
|
|
||
| 2 |
27 changes: 27 additions & 0 deletions
27
tests/service/data/SyntaxTree/ModuleOrNamespace/Nested module 08.fs.bsl
This file contains hidden or 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,27 @@ | ||
| ImplFile | ||
| (ParsedImplFileInput | ||
| ("/root/ModuleOrNamespace/Nested module 08.fs", false, | ||
| QualifiedNameOfFile Module, [], [], | ||
| [SynModuleOrNamespace | ||
| ([Module], false, NamedModule, | ||
| [NestedModule | ||
| (SynComponentInfo | ||
| ([], None, [], [A], | ||
| PreXmlDoc ((3,0), FSharp.Compiler.Xml.XmlDocCollector), false, | ||
| None, (3,0--3,8)), false, | ||
| [NestedModule | ||
| (SynComponentInfo | ||
| ([], None, [], [B], | ||
| PreXmlDoc ((4,4), FSharp.Compiler.Xml.XmlDocCollector), | ||
| false, None, (4,4--4,12)), false, [], false, (4,4--4,12), | ||
| { ModuleKeyword = Some (4,4--4,10) | ||
| EqualsRange = None }); | ||
| Expr (Const (Int32 2, (6,4--6,5)), (6,4--6,5))], false, | ||
| (3,0--6,5), { ModuleKeyword = Some (3,0--3,6) | ||
| EqualsRange = Some (3,9--3,10) })], | ||
| PreXmlDoc ((1,0), FSharp.Compiler.Xml.XmlDocCollector), [], None, | ||
| (1,0--6,5), { LeadingKeyword = Module (1,0--1,6) })], (true, true), | ||
| { ConditionalDirectives = [] | ||
| CodeComments = [] }, set [])) | ||
|
|
||
| (4,13)-(6,4) parse error Incomplete structured construct at or before this point in definition. Expected '=' or other token. |
6 changes: 6 additions & 0 deletions
6
tests/service/data/SyntaxTree/ModuleOrNamespace/Nested module 09.fs
This file contains hidden or 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,6 @@ | ||
| module Module | ||
|
|
||
| module A = | ||
| module B = | ||
|
|
||
| 2 |
28 changes: 28 additions & 0 deletions
28
tests/service/data/SyntaxTree/ModuleOrNamespace/Nested module 09.fs.bsl
This file contains hidden or 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/ModuleOrNamespace/Nested module 09.fs", false, | ||
| QualifiedNameOfFile Module, [], [], | ||
| [SynModuleOrNamespace | ||
| ([Module], false, NamedModule, | ||
| [NestedModule | ||
| (SynComponentInfo | ||
| ([], None, [], [A], | ||
| PreXmlDoc ((3,0), FSharp.Compiler.Xml.XmlDocCollector), false, | ||
| None, (3,0--3,8)), false, | ||
| [NestedModule | ||
| (SynComponentInfo | ||
| ([], None, [], [B], | ||
| PreXmlDoc ((4,4), FSharp.Compiler.Xml.XmlDocCollector), | ||
| false, None, (4,4--4,12)), false, [], false, (4,4--4,14), | ||
| { ModuleKeyword = Some (4,4--4,10) | ||
| EqualsRange = Some (4,13--4,14) }); | ||
| Expr (Const (Int32 2, (6,4--6,5)), (6,4--6,5))], false, | ||
| (3,0--6,5), { ModuleKeyword = Some (3,0--3,6) | ||
| EqualsRange = Some (3,9--3,10) })], | ||
| PreXmlDoc ((1,0), FSharp.Compiler.Xml.XmlDocCollector), [], None, | ||
| (1,0--6,5), { LeadingKeyword = Module (1,0--1,6) })], (true, true), | ||
| { ConditionalDirectives = [] | ||
| CodeComments = [] }, set [])) | ||
|
|
||
| (6,4)-(6,5) parse error Possible incorrect indentation: this token is offside of context started at position (4:5). Try indenting this token further or using standard formatting conventions. | ||
| (6,4)-(6,5) parse error Incomplete structured construct at or before this point in definition |
6 changes: 6 additions & 0 deletions
6
tests/service/data/SyntaxTree/ModuleOrNamespace/Nested module 10.fs
This file contains hidden or 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,6 @@ | ||
| module Module | ||
|
|
||
| module A = | ||
| module | ||
|
|
||
| 2 |
27 changes: 27 additions & 0 deletions
27
tests/service/data/SyntaxTree/ModuleOrNamespace/Nested module 10.fs.bsl
This file contains hidden or 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,27 @@ | ||
| ImplFile | ||
| (ParsedImplFileInput | ||
| ("/root/ModuleOrNamespace/Nested module 10.fs", false, | ||
| QualifiedNameOfFile Module, [], [], | ||
| [SynModuleOrNamespace | ||
| ([Module], false, NamedModule, | ||
| [NestedModule | ||
| (SynComponentInfo | ||
| ([], None, [], [A], | ||
| PreXmlDoc ((3,0), FSharp.Compiler.Xml.XmlDocCollector), false, | ||
| None, (3,0--3,8)), false, | ||
| [NestedModule | ||
| (SynComponentInfo | ||
| ([], None, [], [], | ||
| PreXmlDoc ((4,4), FSharp.Compiler.Xml.XmlDocCollector), | ||
| false, None, (4,4--6,4)), false, [], false, (4,4--6,4), | ||
| { ModuleKeyword = Some (4,4--4,10) | ||
| EqualsRange = None }); | ||
| Expr (Const (Int32 2, (6,4--6,5)), (6,4--6,5))], false, | ||
| (3,0--6,5), { ModuleKeyword = Some (3,0--3,6) | ||
| EqualsRange = Some (3,9--3,10) })], | ||
| PreXmlDoc ((1,0), FSharp.Compiler.Xml.XmlDocCollector), [], None, | ||
| (1,0--6,5), { LeadingKeyword = Module (1,0--1,6) })], (true, true), | ||
| { ConditionalDirectives = [] | ||
| CodeComments = [] }, set [])) | ||
|
|
||
| (4,11)-(6,4) parse error Incomplete structured construct at or before this point in definition. Expected '=' or other token. |
5 changes: 5 additions & 0 deletions
5
tests/service/data/SyntaxTree/ModuleOrNamespace/Nested module 11.fs
This file contains hidden or 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,5 @@ | ||
| module Module | ||
|
|
||
| module | ||
|
|
||
| A |
19 changes: 19 additions & 0 deletions
19
tests/service/data/SyntaxTree/ModuleOrNamespace/Nested module 11.fs.bsl
This file contains hidden or 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,19 @@ | ||
| ImplFile | ||
| (ParsedImplFileInput | ||
| ("/root/ModuleOrNamespace/Nested module 11.fs", false, | ||
| QualifiedNameOfFile Module, [], [], | ||
| [SynModuleOrNamespace | ||
| ([Module], false, NamedModule, | ||
| [NestedModule | ||
| (SynComponentInfo | ||
| ([], None, [], [], | ||
| PreXmlDoc ((3,0), FSharp.Compiler.Xml.XmlDocCollector), false, | ||
| None, (3,0--5,0)), false, [], false, (3,0--5,0), | ||
| { ModuleKeyword = Some (3,0--3,6) | ||
| EqualsRange = None }); Expr (Ident A, (5,0--5,1))], | ||
| PreXmlDoc ((1,0), FSharp.Compiler.Xml.XmlDocCollector), [], None, | ||
| (1,0--5,1), { LeadingKeyword = Module (1,0--1,6) })], (true, true), | ||
| { ConditionalDirectives = [] | ||
| CodeComments = [] }, set [])) | ||
|
|
||
| (3,7)-(5,0) parse error Incomplete structured construct at or before this point in definition. Expected '=' or other token. |
3 changes: 3 additions & 0 deletions
3
tests/service/data/SyntaxTree/ModuleOrNamespace/Nested module 12.fs
This file contains hidden or 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 | ||
|
|
||
| module |
19 changes: 19 additions & 0 deletions
19
tests/service/data/SyntaxTree/ModuleOrNamespace/Nested module 12.fs.bsl
This file contains hidden or 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,19 @@ | ||
| ImplFile | ||
| (ParsedImplFileInput | ||
| ("/root/ModuleOrNamespace/Nested module 12.fs", false, | ||
| QualifiedNameOfFile Module, [], [], | ||
| [SynModuleOrNamespace | ||
| ([Module], false, NamedModule, | ||
| [NestedModule | ||
| (SynComponentInfo | ||
| ([], None, [], [], | ||
| PreXmlDoc ((3,0), FSharp.Compiler.Xml.XmlDocCollector), false, | ||
| None, (3,0--4,0)), false, [], false, (3,0--4,0), | ||
| { ModuleKeyword = Some (3,0--3,6) | ||
| EqualsRange = None })], | ||
| PreXmlDoc ((1,0), FSharp.Compiler.Xml.XmlDocCollector), [], None, | ||
| (1,0--4,0), { LeadingKeyword = Module (1,0--1,6) })], (true, true), | ||
| { ConditionalDirectives = [] | ||
| CodeComments = [] }, set [])) | ||
|
|
||
| (4,0)-(4,0) parse error Incomplete structured construct at or before this point in definition. Expected '=' or other token. |
3 changes: 3 additions & 0 deletions
3
tests/service/data/SyntaxTree/ModuleOrNamespace/Nested module 13.fs
This file contains hidden or 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 | ||
|
|
||
| module A |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.