You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_ =>thrownewInvalidOperationException($"GetRenameVariableEdit was called on an Ast that was not the target. This is a bug and you should file an issue.")
/// Returns true if the Expression is part of a variable assignment
285
316
/// </summary>
@@ -333,9 +364,9 @@ public static bool IsScopedVariableAssignment(this VariableExpressionAst var)
333
364
}
334
365
335
366
/// <summary>
336
-
/// For a given string constant, determine if it is a splat, and there is at least one splat reference. If so, return a tuple of the variable assignment and the name of the splat reference. If not, return null.
367
+
/// For a given string constant, determine if it is a splat, and there is at least one splat reference. If so, return the location of the splat assignment.
@@ -389,11 +420,18 @@ public static bool TryGetFunction(this ParameterAst ast, out FunctionDefinitionA
389
420
// Splats are special, we will treat them as a top variable assignment and search both above for a parameter assignment and below for a splat reference, but we don't require a command definition within the same scope for the splat.
0 commit comments