Skip to content

Commit 6ec8df2

Browse files
committed
Fix C# query to give results in the same format as java.
1 parent 4170e7f commit 6ec8df2

File tree

1 file changed

+2
-11
lines changed
  • extensions/ql-vscode/src/data-extensions-editor/queries

1 file changed

+2
-11
lines changed

extensions/ql-vscode/src/data-extensions-editor/queries/csharp.ts

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,6 @@ class ExternalApi extends DotNet::Callable {
7777
not isUninteresting(this)
7878
}
7979
80-
/**
81-
* Gets the unbound type, name and parameter types of this API.
82-
*/
83-
bindingset[this]
84-
private string getSignature() {
85-
result =
86-
this.getDeclaringType().getUnboundDeclaration() + "." + this.getName() + "(" +
87-
parameterQualifiedTypeNamesToString(this) + ")"
88-
}
89-
9080
/**
9181
* Gets the namespace of this API.
9282
*/
@@ -97,7 +87,8 @@ class ExternalApi extends DotNet::Callable {
9787
* Gets the namespace and signature of this API.
9888
*/
9989
bindingset[this]
100-
string getApiName() { result = this.getNamespace() + "#" + this.getSignature() }
90+
string getApiName() { result = this.getNamespace() + "." + this.getDeclaringType().getUnboundDeclaration() + "#" + this.getName() + "(" +
91+
parameterQualifiedTypeNamesToString(this) + ")" }
10192
10293
/** Gets a node that is an input to a call to this API. */
10394
private ArgumentNode getAnInput() {

0 commit comments

Comments
 (0)