-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing issue with circular references on printing parameters
- Loading branch information
Showing
42 changed files
with
4,258 additions
and
5,175 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,17 @@ | ||
|
||
General things: | ||
|
||
Make sure that logitall is installed globally, and run from a directory other than the project. | ||
|
||
Testing Items | ||
|
||
* Run Unit Tests | ||
* Test all command line parameters | ||
* Test logitall ignore capabilities | ||
* Test on AST-Types, Recast, JSCodeShift | ||
* Test on full angular applications in Chrome. | ||
* Test on NGXAdmin | ||
* Dune Trello | ||
* ionic conference app | ||
* NGXAdmin | ||
|
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 |
---|---|---|
@@ -1,15 +1,18 @@ | ||
// @ts-ignore | ||
function decycle(u){var f=[],c=[];return function p(o,i){var t,e,n,r=o&&o.toJSON instanceof Function?o.toJSON():o;if(typeof r=="object"&&r!==null){for(t=0;t<f.length;t+=1)if(f[t]===r)return{$ref:c[t]};if(f.push(r),c.push(i),Object.prototype.toString.apply(r)==="[object Array]")for(n=[],t=0;t<r.length;t+=1)n[t]=p(r[t],i+"["+t+"]");else{n={};for(e in r)Object.prototype.hasOwnProperty.call(r,e)&&(n[e]=p(r[e],i+"["+JSON.stringify(e)+"]"))}return n}return r}(u,"$")} | ||
|
||
let testLog = function(paramOne, paramTwo) { | ||
console.log( | ||
"[logitall] __testfixtures__/function-anonymous-logparams.input.ts:1:function(paramOne, paramTwo)" | ||
'[logitall] __testfixtures__/function-anonymous-logparams.input.ts:1:function(paramOne, paramTwo)' | ||
); | ||
|
||
console.log( | ||
`[logitall] __testfixtures__/function-anonymous-logparams.input.ts:1::param paramOne value: | ||
${JSON.stringify(paramOne)}` | ||
${JSON.stringify(decycle(paramOne))}` | ||
); | ||
|
||
console.log( | ||
`[logitall] __testfixtures__/function-anonymous-logparams.input.ts:1::param paramTwo value: | ||
${JSON.stringify(paramTwo)}` | ||
${JSON.stringify(decycle(paramTwo))}` | ||
); | ||
} |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
let testLog = function() { | ||
console.log("[logitall] __testfixtures__/function-anonymous.input.ts:1:function()"); | ||
} | ||
console.log('[logitall] __testfixtures__/function-anonymous.input.ts:1:function()'); | ||
} |
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 |
---|---|---|
@@ -1,15 +1,18 @@ | ||
// @ts-ignore | ||
function decycle(u){var f=[],c=[];return function p(o,i){var t,e,n,r=o&&o.toJSON instanceof Function?o.toJSON():o;if(typeof r=="object"&&r!==null){for(t=0;t<f.length;t+=1)if(f[t]===r)return{$ref:c[t]};if(f.push(r),c.push(i),Object.prototype.toString.apply(r)==="[object Array]")for(n=[],t=0;t<r.length;t+=1)n[t]=p(r[t],i+"["+t+"]");else{n={};for(e in r)Object.prototype.hasOwnProperty.call(r,e)&&(n[e]=p(r[e],i+"["+JSON.stringify(e)+"]"))}return n}return r}(u,"$")} | ||
|
||
let testLog = (paramOne, paramTwo) => { | ||
console.log( | ||
"[logitall] __testfixtures__/function-arrow-logparams.input.ts:1:(paramOne, paramTwo) => {}" | ||
'[logitall] __testfixtures__/function-arrow-logparams.input.ts:1:(paramOne, paramTwo) => {}' | ||
); | ||
|
||
console.log( | ||
`[logitall] __testfixtures__/function-arrow-logparams.input.ts:1::param paramOne value: | ||
${JSON.stringify(paramOne)}` | ||
${JSON.stringify(decycle(paramOne))}` | ||
); | ||
|
||
console.log( | ||
`[logitall] __testfixtures__/function-arrow-logparams.input.ts:1::param paramTwo value: | ||
${JSON.stringify(paramTwo)}` | ||
${JSON.stringify(decycle(paramTwo))}` | ||
); | ||
}; | ||
}; |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
let testLog = () => { | ||
console.log("[logitall] __testfixtures__/function-arrow.input.ts:1:() => {}"); | ||
console.log('[logitall] __testfixtures__/function-arrow.input.ts:1:() => {}'); | ||
}; |
2 changes: 1 addition & 1 deletion
2
__testfixtures__/function-declaration-export-default-function.output.ts
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
export default function (options: MyOptions): ResultValue { | ||
console.log( | ||
"[logitall] __testfixtures__/function-declaration-export-default-function.input.ts:1:function(options)" | ||
'[logitall] __testfixtures__/function-declaration-export-default-function.input.ts:1:function(options)' | ||
); | ||
} | ||
|
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 |
---|---|---|
@@ -1,15 +1,18 @@ | ||
// @ts-ignore | ||
function decycle(u){var f=[],c=[];return function p(o,i){var t,e,n,r=o&&o.toJSON instanceof Function?o.toJSON():o;if(typeof r=="object"&&r!==null){for(t=0;t<f.length;t+=1)if(f[t]===r)return{$ref:c[t]};if(f.push(r),c.push(i),Object.prototype.toString.apply(r)==="[object Array]")for(n=[],t=0;t<r.length;t+=1)n[t]=p(r[t],i+"["+t+"]");else{n={};for(e in r)Object.prototype.hasOwnProperty.call(r,e)&&(n[e]=p(r[e],i+"["+JSON.stringify(e)+"]"))}return n}return r}(u,"$")} | ||
|
||
function testLog(paramOne, paramTwo) { | ||
console.log( | ||
"[logitall] __testfixtures__/function-declaration-logparams.input.ts:1:testLog(paramOne, paramTwo)" | ||
'[logitall] __testfixtures__/function-declaration-logparams.input.ts:1:testLog(paramOne, paramTwo)' | ||
); | ||
|
||
console.log( | ||
`[logitall] __testfixtures__/function-declaration-logparams.input.ts:1:testLog:param paramOne value: | ||
${JSON.stringify(paramOne)}` | ||
${JSON.stringify(decycle(paramOne))}` | ||
); | ||
|
||
console.log( | ||
`[logitall] __testfixtures__/function-declaration-logparams.input.ts:1:testLog:param paramTwo value: | ||
${JSON.stringify(paramTwo)}` | ||
${JSON.stringify(decycle(paramTwo))}` | ||
); | ||
} | ||
} |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
function testLog() { | ||
console.log("[logitall] __testfixtures__/function-declaration.input.ts:1:testLog()"); | ||
console.log('[logitall] __testfixtures__/function-declaration.input.ts:1:testLog()'); | ||
} |
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
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 @@ | ||
const object = { a: 1, b: 2, c: 3 }; | ||
|
||
for (const property in object) | ||
return 5; |
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 @@ | ||
const object = { a: 1, b: 2, c: 3 }; | ||
|
||
for (const property in object) | ||
return 5; |
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 @@ | ||
const array1 = ['a', 'b', 'c']; | ||
|
||
for (const element of array1) | ||
console.log(element); |
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 @@ | ||
const array1 = ['a', 'b', 'c']; | ||
|
||
for (const element of array1) | ||
console.log(element); |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
function bunny() { | ||
console.log("[logitall] __testfixtures__/function-return.input.ts:1:bunny()"); | ||
console.log("[logitall] __testfixtures__/function-return.input.ts:2"); | ||
console.log('[logitall] __testfixtures__/function-return.input.ts:1:bunny()'); | ||
console.log('[logitall] __testfixtures__/function-return.input.ts:2'); | ||
return 'bubba'; | ||
} |
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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
class BaseClass { | ||
|
||
public items:number[]; | ||
|
||
constructor(paramOne:number, paramTwo:number) { | ||
|
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
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
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 |
---|---|---|
@@ -1,21 +1,24 @@ | ||
// @ts-ignore | ||
function decycle(u){var f=[],c=[];return function p(o,i){var t,e,n,r=o&&o.toJSON instanceof Function?o.toJSON():o;if(typeof r=="object"&&r!==null){for(t=0;t<f.length;t+=1)if(f[t]===r)return{$ref:c[t]};if(f.push(r),c.push(i),Object.prototype.toString.apply(r)==="[object Array]")for(n=[],t=0;t<r.length;t+=1)n[t]=p(r[t],i+"["+t+"]");else{n={};for(e in r)Object.prototype.hasOwnProperty.call(r,e)&&(n[e]=p(r[e],i+"["+JSON.stringify(e)+"]"))}return n}return r}(u,"$")} | ||
|
||
class TestInstanceMethodClass { | ||
testlog(paramOne:number, paramTwo: number): number { | ||
console.log( | ||
"[logitall] __testfixtures__/method-instance-logparams.input.ts:2:testlog()" | ||
'[logitall] __testfixtures__/method-instance-logparams.input.ts:2:testlog()' | ||
); | ||
|
||
console.log( | ||
`[logitall] __testfixtures__/method-instance-logparams.input.ts:2::param paramOne value: | ||
${JSON.stringify(paramOne)}` | ||
${JSON.stringify(decycle(paramOne))}` | ||
); | ||
|
||
console.log( | ||
`[logitall] __testfixtures__/method-instance-logparams.input.ts:2::param paramTwo value: | ||
${JSON.stringify(paramTwo)}` | ||
${JSON.stringify(decycle(paramTwo))}` | ||
); | ||
|
||
const total:number = paramOne + paramTwo; | ||
console.log("[logitall] __testfixtures__/method-instance-logparams.input.ts:4"); | ||
console.log('[logitall] __testfixtures__/method-instance-logparams.input.ts:4'); | ||
return total; | ||
} | ||
} |
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
class TestInstanceMethodClass { | ||
testlog(paramOne:number, paramTwo: number): number { | ||
console.log("[logitall] __testfixtures__/method-instance.input.ts:2:testlog()"); | ||
console.log('[logitall] __testfixtures__/method-instance.input.ts:2:testlog()'); | ||
const total:number = paramOne + paramTwo; | ||
console.log("[logitall] __testfixtures__/method-instance.input.ts:4"); | ||
console.log('[logitall] __testfixtures__/method-instance.input.ts:4'); | ||
return total; | ||
} | ||
} |
Oops, something went wrong.