initial
This commit is contained in:
commit
baa0056244
352 changed files with 47928 additions and 0 deletions
|
|
@ -0,0 +1,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
|
||||
Loading…
Add table
Add a link
Reference in a new issue