forked from PowerShell/PowerShellEditorServices
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMultipleSymbols.ps1
56 lines (41 loc) · 812 Bytes
/
MultipleSymbols.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
$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