Skip to content
This repository was archived by the owner on Nov 2, 2022. It is now read-only.

Commit 689a032

Browse files
committed
Bugfix for C# function parsing
1 parent c4e4c1e commit 689a032

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

LanguageServer/src/Server/Workspace/CSharpFileData.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@ public void Update(string text, Uri uri)
5353
// TODO: This doesn't match anonymous functions, fix that at somepoint
5454
var commandbridges = regMatches
5555
.Select(e =>
56-
(e.m.ArgumentList.Arguments[0].ToString().Trim('\"'), e.m.ArgumentList.Arguments[1], e.Item2))
57-
.Where(b => b.Item2.Kind() == SyntaxKind.IdentifierName);
56+
(e.m.ArgumentList.Arguments[0].ToString().Trim('\"'), e.m.ArgumentList.Arguments[1].Expression, e.Item2))
57+
.Where(b =>
58+
b.Item2.Kind() == SyntaxKind.IdentifierName);
5859

5960
var registeredmatched = root.DescendantNodes()
6061
.OfType<MethodDeclarationSyntax>()

0 commit comments

Comments
 (0)