Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions src/harness/fourslash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1096,14 +1096,6 @@ namespace FourSlash {
}
addSpanInfoString();
return resultString;

function repeatString(count: number, char: string) {
let result = "";
for (let i = 0; i < count; i++) {
result += char;
}
return result;
}
}

public getBreakpointStatementLocation(pos: number) {
Expand Down Expand Up @@ -2055,7 +2047,7 @@ namespace FourSlash {

for (let i = 0; i < length; i++) {
const item = items[i];
Harness.IO.log(`name: ${item.text}, kind: ${item.kind}`);
Harness.IO.log(`${repeatString(item.indent, " ")}name: ${item.text}, kind: ${item.kind}, childItems: ${item.childItems.map(child => child.text)}`);
}
}

Expand Down Expand Up @@ -2742,6 +2734,14 @@ ${code}
fileName: fileName
};
}

function repeatString(count: number, char: string) {
let result = "";
for (let i = 0; i < count; i++) {
result += char;
}
return result;
}
}

namespace FourSlashInterface {
Expand Down