Skip to content

Commit 53a7956

Browse files
author
Kusto Build System
committed
Auto-sync from Azure-Kusto-Service
1 parent 6e3cf9f commit 53a7956

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

src/Kusto.Language/Symbols/FunctionSymbol.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,11 @@ public FunctionSymbol(string name, string parameterList, string body, string des
189189
{
190190
}
191191

192+
public FunctionSymbol(string name, string parameterList, string body, Tabularity tabularity, string description = null)
193+
: this(name, new[] { new Signature(body, tabularity, Parameter.ParseList(parameterList)) }, description)
194+
{
195+
}
196+
192197
public FunctionSymbol(string name, FunctionBody declaration, IReadOnlyList<Parameter> parameters)
193198
: this(name, new[] { new Signature(declaration, parameters) })
194199
{

src/Kusto.Language/Symbols/SymbolMatch.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public static bool Matches(this Symbol symbol, string name, SymbolMatch match, b
188188
// if symbol is not allowed to be scalar but it is
189189
if ((match & SymbolMatch.NonScalar) != 0
190190
&& (match & SymbolMatch.Scalar) == 0 // did not also claim it could be scalar
191-
&& symbol.IsScalar)
191+
&& symbol.Tabularity == Tabularity.Scalar)
192192
return false;
193193

194194
// if symbol is only allowed to be tabular but it is not

0 commit comments

Comments
 (0)