From 66335c36e64b8d0ff0be0dcfc9ee33f878b65c30 Mon Sep 17 00:00:00 2001 From: Alex Rickabaugh Date: Mon, 28 Jan 2019 16:26:17 -0800 Subject: [PATCH] fix(ivy): getSourceFile() of transformed nodes returns undefined (#28412) In some cases, calling getSourceFile() on a node from within a TS transform can return undefined (against the signature of the method). In these cases, getting the original node first will work. PR Close #28412 --- packages/compiler-cli/src/ngtsc/annotations/src/ng_module.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/compiler-cli/src/ngtsc/annotations/src/ng_module.ts b/packages/compiler-cli/src/ngtsc/annotations/src/ng_module.ts index f8a93ae3f2..bb15665356 100644 --- a/packages/compiler-cli/src/ngtsc/annotations/src/ng_module.ts +++ b/packages/compiler-cli/src/ngtsc/annotations/src/ng_module.ts @@ -167,7 +167,10 @@ export class NgModuleDecoratorHandler implements DecoratorHandler