Skip to content

Commit 1884693

Browse files
author
Ikko Ashimine
authored
Correct spelling of pseudo in Compiler.cs (PowerShell#17285)
psuedo -> pseudo psuedo-code -> pseudo-code
1 parent 6ffc24b commit 1884693

File tree

1 file changed

+4
-4
lines changed
  • src/System.Management.Automation/engine/parser

1 file changed

+4
-4
lines changed

src/System.Management.Automation/engine/parser/Compiler.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,7 +1064,7 @@ internal static Expression CallSetVariable(Expression variablePath, Expression r
10641064

10651065
internal Expression GetAutomaticVariable(VariableExpressionAst varAst)
10661066
{
1067-
// Generate, in psuedo code:
1067+
// Generate, in pseudo code:
10681068
//
10691069
// return (localsTuple.IsValueSet(tupleIndex)
10701070
// ? localsTuple.ItemXXX
@@ -1074,7 +1074,7 @@ internal Expression GetAutomaticVariable(VariableExpressionAst varAst)
10741074
//
10751075
// * $PSCmdlet - always set if the script uses cmdletbinding.
10761076
// * $_ - always set in process and end block, otherwise need dynamic checks.
1077-
// * $this - can never know if it's set, always need above psuedo code.
1077+
// * $this - can never know if it's set, always need above pseudo code.
10781078
// * $input - also can never know - it's always set from a command process, but not necessarily set from ScriptBlock.Invoke.
10791079
//
10801080
// These optimizations are not yet performed.
@@ -3907,7 +3907,7 @@ private Expression GetRedirectedExpression(CommandExpressionAst commandExpr, boo
39073907
// funcContext.OutputPipe = oldPipe;
39083908
// }
39093909
//
3910-
// In the above psuedo-code, any of {outputFileRedirection, nonOutputFileRedirection, mergingRedirection} may
3910+
// In the above pseudo-code, any of {outputFileRedirection, nonOutputFileRedirection, mergingRedirection} may
39113911
// not exist, but the order is preserved, so that file redirections go before merging redirections (so that
39123912
// funcContext.OutputPipe has the correct value when setting up merging.)
39133913
//
@@ -5178,7 +5178,7 @@ public object VisitCatchClause(CatchClauseAst catchClauseAst)
51785178
// If the automatic var has no value in the current frame, then we set the variable's value to $null
51795179
// after leaving the stmt.
51805180
//
5181-
// The psuedo-code:
5181+
// The pseudo-code:
51825182
//
51835183
// try {
51845184
// oldValue = (localSet.Get(automaticVar)) ? locals.ItemNNN : null;

0 commit comments

Comments
 (0)