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
{{ message }}
Repository navigation
Commit d430459
Browse filesBrowse the repository at this point in the historyBrowse files
// If the function is recursive (calls itself), its parent is a match unless a more specific in-scope function definition comes next (this is a "bad practice" edge case)
234
-
// TODO: Consider a simple "contains" match
235
234
if(command.HasParent(funcDef)){returntrue;}
236
235
237
236
returncommand.HasParent(funcDef.Parent);// The command is in the same scope as the function definition
=>var.ParentisAssignmentStatementAst or ParameterAst;
329
327
@@ -348,7 +346,6 @@ public static bool IsPotentialVariableReference(this Ast ast)
348
346
/// <summary>
349
347
/// Determines if a variable assignment is a scoped variable assignment, meaning that it can be considered the top assignment within the current scope. This does not include Variable assignments within the body of a scope which may or may not be the top only if one of these do not exist above it in the same scope.
350
348
/// </summary>
351
-
// TODO: Naming is hard, I feel like this could have a better name
@@ -390,7 +387,6 @@ ast is VariableExpressionAst var
390
387
391
388
/// <summary>
392
389
/// For a given splat reference, find its source splat assignment. If the reference is not a splat, an exception will be thrown. If no assignment is found, null will be returned.
393
-
/// TODO: Support incremental splat references e.g. $x = @{}, $x.Method = 'GET'
0 commit comments