-
Notifications
You must be signed in to change notification settings - Fork 620
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3476 from kumarstack55/develop
PowerShell: add tag generation from class
- Loading branch information
Showing
4 changed files
with
101 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--sort=no | ||
# "qualified" extra doesn't work. | ||
# --extras=+q | ||
--fields=+S |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
MyException input.ps1 /^class MyException : Exception {$/;" c | ||
Foo input.ps1 /^class Foo {$/;" c | ||
GetBar input.ps1 /^function GetBar {$/;" f | ||
GetBaz input.ps1 /^function GetBaz() {$/;" f signature:() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
class MyException : Exception { | ||
MyException([String]$Message) : base([String]$Message) { | ||
Write-Host "dummy" | ||
} | ||
} | ||
|
||
class Foo { | ||
$Property1 | ||
$Property2 = 20 | ||
Method($Arg1) { | ||
$LocalVar1 = 100 | ||
Write-Host "dummy" | ||
} | ||
} | ||
|
||
function GetBar { | ||
$LocalVar2 = 200 | ||
Write-Host "dummy" | ||
} | ||
|
||
function GetBaz() { | ||
Write-Host "dummy" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters