Use the fileName that is in scope.

This commit is contained in:
Cyrus Najmabadi
2015-04-08 22:28:40 -07:00
parent 0d233fdd17
commit e5d0ffab15

View File

@@ -4000,7 +4000,7 @@ module ts {
let end = node.getEnd();
return {
fileName: node.getSourceFile().fileName,
fileName: sourceFile.fileName,
textSpan: createTextSpanFromBounds(start, end),
isDefinition: false,
isWriteAccess: false,