mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
more baselines. revert unintentional change to harness.ts.
This commit is contained in:
1 parent
e6d1e39fb7
commit
4db419d93c
7 files changed
+24
-44
No files matched your search
@@ -8738,20 +8738,6 @@ module ts {
|
||||
|
||||
// Language service support
|
||||
|
||||
function getNodeAtPosition(sourceFile: SourceFile, position: number): Node {
|
||||
function findChildAtPosition(parent: Node): Node {
|
||||
var child = forEachChild(parent, node => {
|
||||
if (position >= node.pos && position <= node.end && position >= getTokenPosOfNode(node)) {
|
||||
return findChildAtPosition(node);
|
||||
}
|
||||
});
|
||||
return child || parent;
|
||||
}
|
||||
if (position < sourceFile.pos) position = sourceFile.pos;
|
||||
if (position > sourceFile.end) position = sourceFile.end;
|
||||
return findChildAtPosition(sourceFile);
|
||||
}
|
||||
|
||||
function isInsideWithStatementBody(node: Node): boolean {
|
||||
if (node) {
|
||||
while (node.parent) {
|
||||
|
||||
Reference in new issue
Block a user