Use an output format for quickinfo that more closely matches the original source.

i.e. use  "var v: string" instead of "(var) v: string".

The parens case should only be used when we're using an english description instead of
an actual language construct.
This commit is contained in:
Cyrus Najmabadi
2015-03-24 00:16:49 -07:00
parent 2af1b92239
commit eed6f0deca
161 changed files with 912 additions and 864 deletions
+5
View File
@@ -256,6 +256,11 @@ module ts {
return tokenStrings[t];
}
/* @internal */
export function stringToToken(s: string): SyntaxKind {
return textToToken[s];
}
export function computeLineStarts(text: string): number[] {
let result: number[] = new Array();
let pos = 0;