-
Notifications
You must be signed in to change notification settings - Fork 830
Don't show completions on nested module identifier #13089
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
23 commits
Select commit
Hold shift + click to select a range
f2ce0f1
Don't show completions on nested module identifier
kerams 91f9841
Merge remote-tracking branch 'upstream/main' into mod
kerams b8bc941
Merge
kerams c3241ad
Recover from incomplete module declaration
kerams 5b56e6a
Blah
kerams 9c36b93
Fixes
kerams 181300c
Merge
kerams 7f275a2
Fix parser
kerams 7a43db1
Merge remote-tracking branch 'upstream/main' into mod
kerams b8375c5
Fix parser
kerams f184f4a
Format
kerams c8a5550
Add AST tests
kerams f00b3e9
Revert LexFilter changes
kerams 06c6358
Merge remote-tracking branch 'upstream/main' into mod
kerams 0e0c51e
Readd LexFilter
kerams 7c8b4be
Merge branch 'main' into mod
kerams 3b4b051
Merge branch 'main' into mod
kerams f8c8577
Merge branch 'main' into mod
T-Gro 287347f
Update baselines
kerams ae8d604
Merge branch 'main' into mod
T-Gro 9f77aa1
Merge branch 'main' into mod
kerams 1171516
Format
kerams de969cb
Update baselines
kerams 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
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,4 +1,2 @@ | ||
|
|
||
| neg41.fs(3,1,3,5): parse error FS0010: Unexpected start of structured construct in definition. Expected '=' or other token. | ||
|
|
||
| neg41.fs(4,1,4,1): parse error FS0010: Incomplete structured construct at or before this point in implementation file | ||
| neg41.fs(3,1,3,5): parse error FS0010: Unexpected keyword 'type' 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,4 +1,2 @@ | ||
|
|
||
| neg42.fsi(3,1,3,5): parse error FS0010: Unexpected start of structured construct in signature file. Expected ':', '=' or other token. | ||
|
|
||
| neg42.fsi(4,1,4,1): parse error FS0010: Incomplete structured construct at or before this point in signature file | ||
| neg42.fsi(3,1,3,5): parse error FS0010: Unexpected keyword 'type' in signature file. Expected ':', '=' or other token. |
1 change: 1 addition & 0 deletions
1
tests/service/data/SyntaxTree/ModuleOrNamespace/EmptyModuleOrNamespaceShouldBePresent.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 @@ | ||
| module A.B.C |
10 changes: 10 additions & 0 deletions
10
tests/service/data/SyntaxTree/ModuleOrNamespace/EmptyModuleOrNamespaceShouldBePresent.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,10 @@ | ||
| ImplFile | ||
| (ParsedImplFileInput | ||
| ("/root/ModuleOrNamespace/EmptyModuleOrNamespaceShouldBePresent.fs", false, | ||
| QualifiedNameOfFile A.B.C, [], [], | ||
| [SynModuleOrNamespace | ||
| ([A; B; C], false, NamedModule, [], | ||
| PreXmlDoc ((1,0), FSharp.Compiler.Xml.XmlDocCollector), [], None, | ||
| (1,0--1,12), { LeadingKeyword = Module (1,0--1,6) })], (true, false), | ||
| { ConditionalDirectives = [] | ||
| CodeComments = [] }, set [])) |
5 changes: 5 additions & 0 deletions
5
tests/service/data/SyntaxTree/NestedModule/IncompleteNestedModuleShouldBePresent.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 A.B | ||
|
|
||
| module C | ||
|
|
||
| let a = () | ||
psfinaki marked this conversation as resolved.
Show resolved
Hide resolved
|
||
29 changes: 29 additions & 0 deletions
29
tests/service/data/SyntaxTree/NestedModule/IncompleteNestedModuleShouldBePresent.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,29 @@ | ||
| ImplFile | ||
| (ParsedImplFileInput | ||
| ("/root/NestedModule/IncompleteNestedModuleShouldBePresent.fs", false, | ||
| QualifiedNameOfFile A.B, [], [], | ||
| [SynModuleOrNamespace | ||
| ([A; B], false, NamedModule, | ||
| [NestedModule | ||
| (SynComponentInfo | ||
| ([], None, [], [C], | ||
| 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 }); | ||
| Let | ||
| (false, | ||
| [SynBinding | ||
| (None, Normal, false, false, [], | ||
| PreXmlDoc ((5,0), FSharp.Compiler.Xml.XmlDocCollector), | ||
| SynValData | ||
| (None, SynValInfo ([], SynArgInfo ([], false, None)), None), | ||
| Named (SynIdent (a, None), false, None, (5,4--5,5)), None, | ||
| Const (Unit, (5,8--5,10)), (5,4--5,5), Yes (5,0--5,10), | ||
| { LeadingKeyword = Let (5,0--5,3) | ||
| InlineKeyword = None | ||
| EqualsRange = Some (5,6--5,7) })], (5,0--5,10))], | ||
| PreXmlDoc ((1,0), FSharp.Compiler.Xml.XmlDocCollector), [], None, | ||
| (1,0--5,10), { LeadingKeyword = Module (1,0--1,6) })], (true, false), | ||
| { ConditionalDirectives = [] | ||
| CodeComments = [] }, set [])) |
5 changes: 5 additions & 0 deletions
5
tests/service/data/SyntaxTree/NestedModule/IncompleteNestedModuleSigShouldBePresent.fsi
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 A.B | ||
|
|
||
| module C | ||
|
|
||
| val a: unit |
27 changes: 27 additions & 0 deletions
27
tests/service/data/SyntaxTree/NestedModule/IncompleteNestedModuleSigShouldBePresent.fsi.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 @@ | ||
| SigFile | ||
| (ParsedSigFileInput | ||
| ("/root/NestedModule/IncompleteNestedModuleSigShouldBePresent.fsi", | ||
| QualifiedNameOfFile A.B, [], [], | ||
| [SynModuleOrNamespaceSig | ||
| ([A; B], false, NamedModule, | ||
| [NestedModule | ||
| (SynComponentInfo | ||
| ([], None, [], [C], | ||
| PreXmlDoc ((3,0), FSharp.Compiler.Xml.XmlDocCollector), false, | ||
| None, (3,0--3,8)), false, [], (3,0--3,8), | ||
| { ModuleKeyword = Some (3,0--3,6) | ||
| EqualsRange = None }); | ||
| Val | ||
| (SynValSig | ||
| ([], SynIdent (a, None), SynValTyparDecls (None, true), | ||
| LongIdent (SynLongIdent ([unit], [], [None])), | ||
| SynValInfo ([], SynArgInfo ([], false, None)), false, false, | ||
| PreXmlDoc ((5,0), FSharp.Compiler.Xml.XmlDocCollector), None, | ||
| None, (5,0--5,11), { LeadingKeyword = Val (5,0--5,3) | ||
| InlineKeyword = None | ||
| WithKeyword = None | ||
| EqualsRange = None }), (5,0--5,11))], | ||
| PreXmlDoc ((1,0), FSharp.Compiler.Xml.XmlDocCollector), [], None, | ||
| (1,0--5,11), { LeadingKeyword = Module (1,0--1,6) })], | ||
| { ConditionalDirectives = [] | ||
| CodeComments = [] }, set [])) |
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
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.