ispedals 57546393ff Support synthesized SourceFile parent in getOrCreateEmitNode (#24709)
getOrCreateEmitNode() assumes that the SourceFile of node that is
part of a parse tree will also be a parse tree node. This assumption is
not valid for a transformed SourceFile. disposeEmitNodes() already handles
this case by getting the original SourceFile node if the provided node
is synthesized, so do the same in getOrCreateEmitNode().

This results in the test case in #24709 to run without error.
2018-10-28 13:12:08 -04:00
..