powershell-es/test/PowerShellEditorServices.Test.Shared/Symbols/MultipleSymbols.ps1
fwastring baa0056244
Some checks are pending
CI Tests / dotnet (push) Waiting to run
CI Tests / dotnet-1 (push) Waiting to run
CI Tests / dotnet-2 (push) Waiting to run
Emacs End-to-End Tests / ert (push) Waiting to run
Vim End-to-End Tests / themis (push) Waiting to run
initial
2026-02-17 13:06:31 +01:00

56 lines
812 B
PowerShell

$Global:GlobalVar = 0
$UnqualifiedScriptVar = 1
$Script:ScriptVar2 = 2
"`$Script:ScriptVar2 is $Script:ScriptVar2"
function script:AFunction {}
filter AFilter {$_}
function AnAdvancedFunction {
begin {
$LocalVar = 'LocalVar'
function ANestedFunction() {
$nestedVar = 42
"`$nestedVar is $nestedVar"
}
}
process {}
end {}
}
workflow AWorkflow {}
class AClass {
[string]$AProperty
AClass([string]$AParameter) {
}
[void]AMethod([string]$param1, [int]$param2, $param3) {
}
}
enum AEnum {
AValue = 0
}
AFunction
1..3 | AFilter
AnAdvancedFunction
<#
#region don't find me inside comment block
abc
#endregion
#>
#region find me outer
#region find me inner
#endregion
#endregion
#region ignore this unclosed region