// test.script node ../bin/tss.js test.ts // stdout "loaded PREFIX/test.ts, TSS listening.." [{"file":"PREFIX/test.ts" ,"start":{"line":3 ,"character":5} ,"end":{"line":3 ,"character":6} ,"text":"Identifier expected." ,"code":1003 ,"phase":"Syntax" ,"category":"Error"} ,{"file":"PREFIX/test.ts" ,"start":{"line":4 ,"character":5} ,"end":{"line":4 ,"character":6} ,"text":"Identifier expected." ,"code":1003 ,"phase":"Syntax" ,"category":"Error"}] {"kind":"var" ,"kindModifiers":"" ,"textSpan":{"start":32 ,"length":1} ,"documentation":[] ,"type":"var s: string" ,"docComment":""} {"kind":"var" ,"kindModifiers":"" ,"textSpan":{"start":38 ,"length":1} ,"documentation":[] ,"type":"var x: {\n a: number;\n b: number;\n}" ,"docComment":""} {"def":{"fileName":"PREFIX/test.ts" ,"textSpan":{"start":23 ,"length":6} ,"kind":"var" ,"name":"s" ,"containerName":""} ,"file":"PREFIX/test.ts" ,"min":{"line":2 ,"character":5} ,"lim":{"line":2 ,"character":11}} {"def":{"fileName":"PREFIX/test.ts" ,"textSpan":{"start":4 ,"length":13} ,"kind":"var" ,"name":"x" ,"containerName":""} ,"file":"PREFIX/test.ts" ,"min":{"line":1 ,"character":5} ,"lim":{"line":1 ,"character":18}} {"isMemberCompletion":true ,"isNewIdentifierLocation":false ,"entries":[{"name":"toString" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) String.toString(): string" ,"docComment":"Returns a string representation of a string. "} ,{"name":"charAt" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) String.charAt(pos: number): string" ,"docComment":"Returns the character at the specified index."} ,{"name":"charCodeAt" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) String.charCodeAt(index: number): number" ,"docComment":"Returns the Unicode value of the character at the specified location."} ,{"name":"concat" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) String.concat(...strings: string[]): string" ,"docComment":"Returns a string that contains the concatenation of two or more strings."} ,{"name":"indexOf" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) String.indexOf(searchString: string, position?: number): number" ,"docComment":"Returns the position of the first occurrence of a substring. "} ,{"name":"lastIndexOf" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) String.lastIndexOf(searchString: string, position?: number): number" ,"docComment":"Returns the last occurrence of a substring in the string."} ,{"name":"localeCompare" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) String.localeCompare(that: string): number (+2 overloads)" ,"docComment":"Determines whether two strings are equivalent in the current locale."} ,{"name":"match" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) String.match(regexp: string): RegExpMatchArray (+1 overload)" ,"docComment":"Matches a string with a regular expression, and returns an array containing the results of that search."} ,{"name":"replace" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) String.replace(searchValue: string, replaceValue: string): string (+3 overloads)" ,"docComment":"Replaces text in a string, using a regular expression or search string."} ,{"name":"search" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) String.search(regexp: string): number (+1 overload)" ,"docComment":"Finds the first substring match in a regular expression search."} ,{"name":"slice" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) String.slice(start?: number, end?: number): string" ,"docComment":"Returns a section of a string."} ,{"name":"split" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) String.split(separator: string, limit?: number): string[] (+1 overload)" ,"docComment":"Split a string into substrings using the specified separator and return them as an array."} ,{"name":"substring" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) String.substring(start: number, end?: number): string" ,"docComment":"Returns the substring at the specified location within a String object. "} ,{"name":"toLowerCase" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) String.toLowerCase(): string" ,"docComment":"Converts all the alphabetic characters in a string to lowercase. "} ,{"name":"toLocaleLowerCase" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) String.toLocaleLowerCase(): string" ,"docComment":"Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. "} ,{"name":"toUpperCase" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) String.toUpperCase(): string" ,"docComment":"Converts all the alphabetic characters in a string to uppercase. "} ,{"name":"toLocaleUpperCase" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) String.toLocaleUpperCase(): string" ,"docComment":"Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale. "} ,{"name":"trim" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) String.trim(): string" ,"docComment":"Removes the leading and trailing white space and line terminator characters from a string. "} ,{"name":"length" ,"kindModifiers":"declare" ,"kind":"property" ,"type":"(property) String.length: number" ,"docComment":"Returns the length of a String object. "} ,{"name":"substr" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) String.substr(from: number, length?: number): string" ,"docComment":"Gets a substring beginning at the specified location and having the specified length."} ,{"name":"valueOf" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) String.valueOf(): string" ,"docComment":"Returns the primitive value of the specified object. "}]} {"isMemberCompletion":true ,"isNewIdentifierLocation":false ,"entries":[{"name":"a" ,"kindModifiers":"" ,"kind":"property" ,"type":"(property) a: number" ,"docComment":""} ,{"name":"b" ,"kindModifiers":"" ,"kind":"property" ,"type":"(property) b: number" ,"docComment":""}]} "updated PREFIX/test.ts, (2/1) errors" dumping PREFIX/test.ts var x = {a:1,b:2}; var s = ""; var a = []; {s.to } {x. } {a. } [{"file":"PREFIX/test.ts" ,"start":{"line":5 ,"character":5} ,"end":{"line":5 ,"character":6} ,"text":"Identifier expected." ,"code":1003 ,"phase":"Syntax" ,"category":"Error"} ,{"file":"PREFIX/test.ts" ,"start":{"line":6 ,"character":5} ,"end":{"line":6 ,"character":6} ,"text":"Identifier expected." ,"code":1003 ,"phase":"Syntax" ,"category":"Error"} ,{"file":"PREFIX/test.ts" ,"start":{"line":4 ,"character":4} ,"end":{"line":4 ,"character":6} ,"text":"Property 'to' does not exist on type 'string'." ,"code":2339 ,"phase":"Semantics" ,"category":"Error"}] {"isMemberCompletion":true ,"isNewIdentifierLocation":false ,"entries":[{"name":"toString" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) String.toString(): string" ,"docComment":"Returns a string representation of a string. "} ,{"name":"charAt" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) String.charAt(pos: number): string" ,"docComment":"Returns the character at the specified index."} ,{"name":"charCodeAt" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) String.charCodeAt(index: number): number" ,"docComment":"Returns the Unicode value of the character at the specified location."} ,{"name":"concat" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) String.concat(...strings: string[]): string" ,"docComment":"Returns a string that contains the concatenation of two or more strings."} ,{"name":"indexOf" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) String.indexOf(searchString: string, position?: number): number" ,"docComment":"Returns the position of the first occurrence of a substring. "} ,{"name":"lastIndexOf" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) String.lastIndexOf(searchString: string, position?: number): number" ,"docComment":"Returns the last occurrence of a substring in the string."} ,{"name":"localeCompare" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) String.localeCompare(that: string): number (+2 overloads)" ,"docComment":"Determines whether two strings are equivalent in the current locale."} ,{"name":"match" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) String.match(regexp: string): RegExpMatchArray (+1 overload)" ,"docComment":"Matches a string with a regular expression, and returns an array containing the results of that search."} ,{"name":"replace" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) String.replace(searchValue: string, replaceValue: string): string (+3 overloads)" ,"docComment":"Replaces text in a string, using a regular expression or search string."} ,{"name":"search" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) String.search(regexp: string): number (+1 overload)" ,"docComment":"Finds the first substring match in a regular expression search."} ,{"name":"slice" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) String.slice(start?: number, end?: number): string" ,"docComment":"Returns a section of a string."} ,{"name":"split" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) String.split(separator: string, limit?: number): string[] (+1 overload)" ,"docComment":"Split a string into substrings using the specified separator and return them as an array."} ,{"name":"substring" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) String.substring(start: number, end?: number): string" ,"docComment":"Returns the substring at the specified location within a String object. "} ,{"name":"toLowerCase" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) String.toLowerCase(): string" ,"docComment":"Converts all the alphabetic characters in a string to lowercase. "} ,{"name":"toLocaleLowerCase" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) String.toLocaleLowerCase(): string" ,"docComment":"Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. "} ,{"name":"toUpperCase" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) String.toUpperCase(): string" ,"docComment":"Converts all the alphabetic characters in a string to uppercase. "} ,{"name":"toLocaleUpperCase" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) String.toLocaleUpperCase(): string" ,"docComment":"Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale. "} ,{"name":"trim" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) String.trim(): string" ,"docComment":"Removes the leading and trailing white space and line terminator characters from a string. "} ,{"name":"length" ,"kindModifiers":"declare" ,"kind":"property" ,"type":"(property) String.length: number" ,"docComment":"Returns the length of a String object. "} ,{"name":"substr" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) String.substr(from: number, length?: number): string" ,"docComment":"Gets a substring beginning at the specified location and having the specified length."} ,{"name":"valueOf" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) String.valueOf(): string" ,"docComment":"Returns the primitive value of the specified object. "}]} {"isMemberCompletion":true ,"isNewIdentifierLocation":false ,"entries":[{"name":"a" ,"kindModifiers":"" ,"kind":"property" ,"type":"(property) a: number" ,"docComment":""} ,{"name":"b" ,"kindModifiers":"" ,"kind":"property" ,"type":"(property) b: number" ,"docComment":""}]} {"isMemberCompletion":true ,"isNewIdentifierLocation":false ,"entries":[{"name":"length" ,"kindModifiers":"declare" ,"kind":"property" ,"type":"(property) Array.length: number" ,"docComment":"Gets or sets the length of the array. This is a number one higher than the highest element defined in an array."} ,{"name":"toString" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) Array.toString(): string" ,"docComment":"Returns a string representation of an array."} ,{"name":"toLocaleString" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) Array.toLocaleString(): string" ,"docComment":""} ,{"name":"push" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) Array.push(...items: any[]): number" ,"docComment":"Appends new elements to an array, and returns the new length of the array."} ,{"name":"pop" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) Array.pop(): any" ,"docComment":"Removes the last element from an array and returns it."} ,{"name":"concat" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) Array.concat(...items: U[]): any[] (+1 overload)" ,"docComment":"Combines two or more arrays."} ,{"name":"join" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) Array.join(separator?: string): string" ,"docComment":"Adds all the elements of an array separated by the specified separator string."} ,{"name":"reverse" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) Array.reverse(): any[]" ,"docComment":"Reverses the elements in an Array. "} ,{"name":"shift" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) Array.shift(): any" ,"docComment":"Removes the first element from an array and returns it."} ,{"name":"slice" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) Array.slice(start?: number, end?: number): any[]" ,"docComment":"Returns a section of an array."} ,{"name":"sort" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) Array.sort(compareFn?: (a: any, b: any) => number): any[]" ,"docComment":"Sorts an array."} ,{"name":"splice" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) Array.splice(start: number): any[] (+1 overload)" ,"docComment":"Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements."} ,{"name":"unshift" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) Array.unshift(...items: any[]): number" ,"docComment":"Inserts new elements at the start of an array."} ,{"name":"indexOf" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) Array.indexOf(searchElement: any, fromIndex?: number): number" ,"docComment":"Returns the index of the first occurrence of a value in an array."} ,{"name":"lastIndexOf" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) Array.lastIndexOf(searchElement: any, fromIndex?: number): number" ,"docComment":"Returns the index of the last occurrence of a specified value in an array."} ,{"name":"every" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) Array.every(callbackfn: (value: any, index: number, array: any[]) => boolean, thisArg?: any): boolean" ,"docComment":"Determines whether all the members of an array satisfy the specified test."} ,{"name":"some" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) Array.some(callbackfn: (value: any, index: number, array: any[]) => boolean, thisArg?: any): boolean" ,"docComment":"Determines whether the specified callback function returns true for any element of an array."} ,{"name":"forEach" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) Array.forEach(callbackfn: (value: any, index: number, array: any[]) => void, thisArg?: any): void" ,"docComment":"Performs the specified action for each element in an array."} ,{"name":"map" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) Array.map(callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any): U[]" ,"docComment":"Calls a defined callback function on each element of an array, and returns an array that contains the results."} ,{"name":"filter" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) Array.filter(callbackfn: (value: any, index: number, array: any[]) => boolean, thisArg?: any): any[]" ,"docComment":"Returns the elements of an array that meet the condition specified in a callback function. "} ,{"name":"reduce" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) Array.reduce(callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any, initialValue?: any): any (+1 overload)" ,"docComment":"Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function."} ,{"name":"reduceRight" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) Array.reduceRight(callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any, initialValue?: any): any (+1 overload)" ,"docComment":"Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function."}]} {"isMemberCompletion":true ,"isNewIdentifierLocation":false ,"entries":[{"name":"length" ,"kind":"property" ,"kindModifiers":"declare"} ,{"name":"toString" ,"kind":"method" ,"kindModifiers":"declare"} ,{"name":"toLocaleString" ,"kind":"method" ,"kindModifiers":"declare"} ,{"name":"push" ,"kind":"method" ,"kindModifiers":"declare"} ,{"name":"pop" ,"kind":"method" ,"kindModifiers":"declare"} ,{"name":"concat" ,"kind":"method" ,"kindModifiers":"declare"} ,{"name":"join" ,"kind":"method" ,"kindModifiers":"declare"} ,{"name":"reverse" ,"kind":"method" ,"kindModifiers":"declare"} ,{"name":"shift" ,"kind":"method" ,"kindModifiers":"declare"} ,{"name":"slice" ,"kind":"method" ,"kindModifiers":"declare"} ,{"name":"sort" ,"kind":"method" ,"kindModifiers":"declare"} ,{"name":"splice" ,"kind":"method" ,"kindModifiers":"declare"} ,{"name":"unshift" ,"kind":"method" ,"kindModifiers":"declare"} ,{"name":"indexOf" ,"kind":"method" ,"kindModifiers":"declare"} ,{"name":"lastIndexOf" ,"kind":"method" ,"kindModifiers":"declare"} ,{"name":"every" ,"kind":"method" ,"kindModifiers":"declare"} ,{"name":"some" ,"kind":"method" ,"kindModifiers":"declare"} ,{"name":"forEach" ,"kind":"method" ,"kindModifiers":"declare"} ,{"name":"map" ,"kind":"method" ,"kindModifiers":"declare"} ,{"name":"filter" ,"kind":"method" ,"kindModifiers":"declare"} ,{"name":"reduce" ,"kind":"method" ,"kindModifiers":"declare"} ,{"name":"reduceRight" ,"kind":"method" ,"kindModifiers":"declare"}]} {"isMemberCompletion":true ,"isNewIdentifierLocation":false ,"entries":[{"name":"toString" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) String.toString(): string" ,"docComment":"Returns a string representation of a string. "} ,{"name":"toLowerCase" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) String.toLowerCase(): string" ,"docComment":"Converts all the alphabetic characters in a string to lowercase. "} ,{"name":"toLocaleLowerCase" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) String.toLocaleLowerCase(): string" ,"docComment":"Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. "} ,{"name":"toUpperCase" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) String.toUpperCase(): string" ,"docComment":"Converts all the alphabetic characters in a string to uppercase. "} ,{"name":"toLocaleUpperCase" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) String.toLocaleUpperCase(): string" ,"docComment":"Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale. "}] ,"prefix":"to"} "TSS closing" // stderr // issue-9.script node ../bin/tss.js empty.ts // stdout "loaded PREFIX/empty.ts, TSS listening.." "updated PREFIX/empty.ts, (1/0) errors" [{"file":"PREFIX/empty.ts" ,"start":{"line":2 ,"character":1} ,"end":{"line":2 ,"character":1} ,"text":"Expression expected." ,"code":1109 ,"phase":"Syntax" ,"category":"Error"}] "updated PREFIX/empty.ts, (0/0) errors" [] "updated PREFIX/empty.ts, (1/0) errors" [{"file":"PREFIX/empty.ts" ,"start":{"line":2 ,"character":1} ,"end":{"line":2 ,"character":1} ,"text":"Expression expected." ,"code":1109 ,"phase":"Syntax" ,"category":"Error"}] "TSS closing" // stderr // issue-10.script node ../bin/tss.js empty.ts // stdout "loaded PREFIX/empty.ts, TSS listening.." "updated PREFIX/empty.ts, (0/0) errors" "updated PREFIX/empty.ts, (0/0) errors" {"def":{"fileName":"PREFIX/empty.ts" ,"textSpan":{"start":4 ,"length":6} ,"kind":"var" ,"name":"i" ,"containerName":""} ,"file":"PREFIX/empty.ts" ,"min":{"line":1 ,"character":5} ,"lim":{"line":1 ,"character":11}} "TSS closing" // stderr // issue-11.script node ../bin/tss.js empty.ts // stdout "loaded PREFIX/empty.ts, TSS listening.." "updated PREFIX/empty.ts, (1/1) errors" [{"file":"PREFIX/empty.ts" ,"start":{"line":1 ,"character":11} ,"end":{"line":1 ,"character":11} ,"text":"Unterminated string literal." ,"code":1002 ,"phase":"Syntax" ,"category":"Error"} ,{"file":"PREFIX/empty.ts" ,"start":{"line":1 ,"character":1} ,"end":{"line":1 ,"character":4} ,"text":"Cannot find name 'foo'." ,"code":2304 ,"phase":"Semantics" ,"category":"Error"}] "TSS closing" // stderr // issue-12.script node ../bin/tss.js empty.ts // stdout "loaded PREFIX/empty.ts, TSS listening.." "updated PREFIX/empty.ts, (0/0) errors" null "TSS closing" // stderr // issue-13.script node ../bin/tss.js empty.ts // stdout "loaded PREFIX/empty.ts, TSS listening.." "updated PREFIX/empty.ts, (0/1) errors" {"isMemberCompletion":false ,"isNewIdentifierLocation":false ,"entries":[{"name":"bar" ,"kindModifiers":"" ,"kind":"parameter" ,"type":"(parameter) bar: any" ,"docComment":""} ,{"name":"blur" ,"kindModifiers":"declare" ,"kind":"function" ,"type":"function blur(): void" ,"docComment":""} ,{"name":"btoa" ,"kindModifiers":"declare" ,"kind":"function" ,"type":"function btoa(rawString: string): string" ,"docComment":""} ,{"name":"break" ,"kind":"keyword" ,"kindModifiers":"" ,"type":"break" ,"docComment":""} ,{"name":"boolean" ,"kind":"keyword" ,"kindModifiers":"" ,"type":"boolean" ,"docComment":""}] ,"prefix":"b"} "updated PREFIX/empty.ts" {"isMemberCompletion":false ,"isNewIdentifierLocation":false ,"entries":[{"name":"bar" ,"kindModifiers":"" ,"kind":"parameter" ,"type":"(parameter) bar: any" ,"docComment":""} ,{"name":"blur" ,"kindModifiers":"declare" ,"kind":"function" ,"type":"function blur(): void" ,"docComment":""} ,{"name":"btoa" ,"kindModifiers":"declare" ,"kind":"function" ,"type":"function btoa(rawString: string): string" ,"docComment":""} ,{"name":"break" ,"kind":"keyword" ,"kindModifiers":"" ,"type":"break" ,"docComment":""} ,{"name":"boolean" ,"kind":"keyword" ,"kindModifiers":"" ,"type":"boolean" ,"docComment":""}] ,"prefix":"b"} "TSS closing" // stderr // partial-update.script node ../bin/tss.js empty.ts // stdout "loaded PREFIX/empty.ts, TSS listening.." "updated PREFIX/empty.ts, (0/0) errors" dumping PREFIX/empty.ts function foo(bar) { bar } "updated lines 2-2 in PREFIX/empty.ts, (0/0) errors" dumping PREFIX/empty.ts function foo(bar) { "hi"; "ho"; } "updated lines 4-4 in PREFIX/empty.ts, (0/0) errors" dumping PREFIX/empty.ts function foo(bar) { "hi"; "ho"; } // EOF "updated lines 3-3 in PREFIX/empty.ts, (0/1) errors" dumping PREFIX/empty.ts function foo(bar) { "hi"; bozo; } // EOF [{"file":"PREFIX/empty.ts" ,"start":{"line":3 ,"character":1} ,"end":{"line":3 ,"character":5} ,"text":"Cannot find name 'bozo'." ,"code":2304 ,"phase":"Semantics" ,"category":"Error"}] "updated lines 5-5 in PREFIX/empty.ts, (0/1) errors" dumping PREFIX/empty.ts function foo(bar) { "hi"; bozo; } // EOF // postmortem "updated lines 0-0 in PREFIX/empty.ts, (0/1) errors" dumping PREFIX/empty.ts // header function foo(bar) { "hi"; bozo; } // EOF // postmortem "TSS closing" // stderr // update-nocheck-completion-chain.script node ../bin/tss.js empty.ts // stdout "loaded PREFIX/empty.ts, TSS listening.." "updated PREFIX/empty.ts" {"isMemberCompletion":true ,"isNewIdentifierLocation":false ,"entries":[{"name":"forEach" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) Array.forEach(callbackfn: (value: undefined, index: number, array: undefined[]) => void, thisArg?: any): void" ,"docComment":"Performs the specified action for each element in an array."} ,{"name":"filter" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) Array.filter(callbackfn: (value: undefined, index: number, array: undefined[]) => boolean, thisArg?: any): undefined[]" ,"docComment":"Returns the elements of an array that meet the condition specified in a callback function. "}] ,"prefix":"f"} "updated PREFIX/empty.ts" {"isMemberCompletion":true ,"isNewIdentifierLocation":false ,"entries":[{"name":"map" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) Array.map(callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any): U[]" ,"docComment":"Calls a defined callback function on each element of an array, and returns an array that contains the results."}] ,"prefix":"m"} "updated PREFIX/empty.ts" {"isMemberCompletion":true ,"isNewIdentifierLocation":false ,"entries":[{"name":"forEach" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) Array.forEach(callbackfn: (value: string, index: number, array: string[]) => void, thisArg?: any): void" ,"docComment":"Performs the specified action for each element in an array."}] ,"prefix":"fo"} "updated PREFIX/empty.ts" {"isMemberCompletion":true ,"isNewIdentifierLocation":false ,"entries":[{"name":"toLowerCase" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) String.toLowerCase(): string" ,"docComment":"Converts all the alphabetic characters in a string to lowercase. "} ,{"name":"toLocaleLowerCase" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) String.toLocaleLowerCase(): string" ,"docComment":"Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. "} ,{"name":"toLocaleUpperCase" ,"kindModifiers":"declare" ,"kind":"method" ,"type":"(method) String.toLocaleUpperCase(): string" ,"docComment":"Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale. "}] ,"prefix":"toL"} "updated PREFIX/empty.ts" {"isMemberCompletion":false ,"isNewIdentifierLocation":false ,"entries":[{"name":"bar" ,"kindModifiers":"" ,"kind":"parameter" ,"type":"(parameter) bar: any" ,"docComment":""}] ,"prefix":"ba"} "TSS closing" // stderr // issue-15.script node ../bin/tss.js -m commonjs issue-15.ts // stdout "loaded PREFIX/issue-15.ts, TSS listening.." "updated PREFIX/issue-15.ts" {"kind":"local var" ,"kindModifiers":"" ,"textSpan":{"start":333 ,"length":2} ,"documentation":[] ,"type":"(local var) xx: any" ,"docComment":""} {"kind":"local var" ,"kindModifiers":"" ,"textSpan":{"start":356 ,"length":2} ,"documentation":[] ,"type":"(local var) bg: Background.Class" ,"docComment":""} {"isMemberCompletion":true ,"isNewIdentifierLocation":false ,"entries":[{"name":"Class" ,"kindModifiers":"export" ,"kind":"constructor" ,"type":"constructor Background.Class(): Background.Class" ,"docComment":""}]} {"isMemberCompletion":true ,"isNewIdentifierLocation":false ,"entries":[{"name":"Class" ,"kindModifiers":"export" ,"kind":"constructor" ,"type":"constructor Background.Class(): Background.Class" ,"docComment":""}]} null {"isMemberCompletion":true ,"isNewIdentifierLocation":false ,"entries":[{"name":"a" ,"kindModifiers":"public" ,"kind":"property" ,"type":"(property) Background.Class.a: any" ,"docComment":""} ,{"name":"b" ,"kindModifiers":"public" ,"kind":"property" ,"type":"(property) Background.Class.b: any" ,"docComment":""} ,{"name":"init" ,"kindModifiers":"" ,"kind":"method" ,"type":"(method) Background.Class.init(): void" ,"docComment":""}]} {"isMemberCompletion":true ,"isNewIdentifierLocation":false ,"entries":[{"name":"test_var" ,"kindModifiers":"public" ,"kind":"property" ,"type":"(property) Test.test_var: any" ,"docComment":""} ,{"name":"test_method" ,"kindModifiers":"public" ,"kind":"method" ,"type":"(method) Test.test_method(): void" ,"docComment":""}]} "TSS closing" // stderr // issue-17.script node ../bin/tss.js -m commonjs issue-17.ts // stdout "loaded PREFIX/issue-17.ts, TSS listening.." ["NODE_MODULES/typescript/lib/lib.d.ts" ,"PREFIX/issue-17.ts"] [{"ref":{"fileName":"PREFIX/issue-17-import.ts" ,"textSpan":{"start":58 ,"length":5} ,"isWriteAccess":true} ,"file":"PREFIX/issue-17-import.ts" ,"lineText":" public start(){" ,"min":{"line":7 ,"character":12} ,"lim":{"line":7 ,"character":17}} ,{"ref":{"fileName":"PREFIX/issue-17.ts" ,"textSpan":{"start":85 ,"length":5} ,"isWriteAccess":false} ,"file":"PREFIX/issue-17.ts" ,"lineText":"second.start();" ,"min":{"line":4 ,"character":8} ,"lim":{"line":4 ,"character":13}}] [{"ref":{"fileName":"PREFIX/issue-17-import.ts" ,"textSpan":{"start":58 ,"length":5} ,"isWriteAccess":true} ,"file":"PREFIX/issue-17-import.ts" ,"lineText":" public start(){" ,"min":{"line":7 ,"character":12} ,"lim":{"line":7 ,"character":17}} ,{"ref":{"fileName":"PREFIX/issue-17.ts" ,"textSpan":{"start":85 ,"length":5} ,"isWriteAccess":false} ,"file":"PREFIX/issue-17.ts" ,"lineText":"second.start();" ,"min":{"line":4 ,"character":8} ,"lim":{"line":4 ,"character":13}}] ["PREFIX/issue-17-import.ts" ,"NODE_MODULES/typescript/lib/lib.d.ts" ,"PREFIX/issue-17.ts"] "no last error" "TSS closing" // stderr // concat-map.script node ../bin/tss.js empty.ts // stdout "loaded PREFIX/empty.ts, TSS listening.." "updated PREFIX/empty.ts, (0/0) errors" [] "TSS closing" // stderr // issue-52.script node ../bin/tss.js empty.ts // stdout "loaded PREFIX/empty.ts, TSS listening.." "updated PREFIX/empty.ts, (0/1) errors" [{"file":"PREFIX/empty.ts" ,"start":{"line":3 ,"character":1} ,"end":{"line":3 ,"character":6} ,"text":"Type 'number' is not assignable to type '{ \"werwer\": number; \"oo\": number[]; }'." ,"code":2322 ,"phase":"Semantics" ,"category":"Error"}] "TSS closing" // stderr