mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 16:38:05 -06:00
adressed CR feedback: use pos instead of full start
This commit is contained in:
parent
5e0221eeac
commit
bf3fbe347a
@ -40,7 +40,7 @@ module ts {
|
||||
if (node && startElement && endElement) {
|
||||
var span: OutliningSpan = {
|
||||
textSpan: TypeScript.TextSpan.fromBounds(startElement.pos, endElement.end),
|
||||
hintSpan: TypeScript.TextSpan.fromBounds(node.getFullStart(), node.end),
|
||||
hintSpan: TypeScript.TextSpan.fromBounds(node.pos, node.end),
|
||||
bannerText: "...",
|
||||
autoCollapse: false
|
||||
};
|
||||
|
||||
@ -1014,9 +1014,8 @@ module ts {
|
||||
// walk over the nodes and set parent references
|
||||
var parent: Node = sourceFile;
|
||||
function walk(n: Node): void {
|
||||
if (parent) {
|
||||
n.parent = parent;
|
||||
}
|
||||
n.parent = parent;
|
||||
|
||||
var saveParent = parent;
|
||||
parent = n;
|
||||
forEachChild(n, walk);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user