mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-14 16:56:06 -05:00
Add some missing original nodes
This commit is contained in:
@@ -870,7 +870,7 @@ namespace ts {
|
||||
transformConstructorBody(constructor, node, extendsClauseElement, hasSynthesizedSuper)
|
||||
);
|
||||
|
||||
setTextRange(constructorFunction, constructor || node);
|
||||
setTextRange(setOriginalNode(constructorFunction, constructor), constructor || node);
|
||||
if (extendsClauseElement) {
|
||||
setEmitFlags(constructorFunction, EmitFlags.CapturesThis);
|
||||
}
|
||||
|
||||
@@ -2178,13 +2178,16 @@ namespace ts {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
return setTextRange(
|
||||
createExpressionStatement(
|
||||
inlineExpressions(
|
||||
map(variables, transformInitializedVariable)
|
||||
)
|
||||
return setOriginalNode(
|
||||
setTextRange(
|
||||
createExpressionStatement(
|
||||
inlineExpressions(
|
||||
map(variables, transformInitializedVariable)
|
||||
)
|
||||
),
|
||||
node
|
||||
),
|
||||
node
|
||||
node,
|
||||
);
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user