From ab891393465d3f52338f15c69af7a963d19c9a24 Mon Sep 17 00:00:00 2001 From: dfinke Date: Fri, 3 Feb 2017 09:17:06 -0500 Subject: [PATCH 1/2] renamed VistitElement to VistElement --- Measure-Script.ps1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Measure-Script.ps1 b/Measure-Script.ps1 index d0b4282..d0cbfb4 100644 --- a/Measure-Script.ps1 +++ b/Measure-Script.ps1 @@ -139,8 +139,8 @@ class AstVisitor : System.Management.Automation.Language.ICustomAstVisitor [system.object] VisitIfStatement([System.Management.Automation.Language.IfStatementAst] $ifStmtAst) { $newClauses = $ifStmtAst.Clauses | ForEach-Object { - $newClauseTest = $this.VistitElement($_.Item1) - $newStatementBlock = $this.VistitElement($_.Item2) + $newClauseTest = $this.VisitElement($_.Item1) + $newStatementBlock = $this.VisitElement($_.Item2) [System.Tuple[System.Management.Automation.Language.PipelineBaseAst,System.Management.Automation.Language.StatementBlockAst]]::new($newClauseTest,$newStatementBlock) } $newElseClause = $this.VisitElement($ifStmtAst.ElseClause) @@ -156,8 +156,8 @@ class AstVisitor : System.Management.Automation.Language.ICustomAstVisitor { $newCondition = $this.VisitElement($switchStatementAst.Condition) $newClauses = $switchStatementAst.Clauses | ForEach-Object { - $newClauseTest = $this.VistitElement($_.Item1) - $newStatementBlock = $this.VistitElement($_.Item2) + $newClauseTest = $this.VisitElement($_.Item1) + $newStatementBlock = $this.VisitElement($_.Item2) [System.Tuple[System.Management.Automation.Language.ExpressionAst,System.Management.Automation.Language.StatementBlockAst]]::new($newClauseTest,$newStatementBlock) } $newDefault = $this.VisitElement($switchStatementAst.Default) From 4fb4f4b1ba6432527caccacc1fa77bdaf91005ff Mon Sep 17 00:00:00 2001 From: dfinke Date: Fri, 3 Feb 2017 10:35:36 -0500 Subject: [PATCH 2/2] added MIT License --- LICENSE.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 LICENSE.txt diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..835b7d6 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,21 @@ +The MIT License + +Copyright (c) 2017 Johan Åkerström + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE.