@@ -329,9 +329,6 @@ namespace ts {
329329 // Map storing if there is emit blocking diagnostics for given input
330330 const hasEmitBlockingDiagnostics = createFileMap < boolean > ( getCanonicalFileName ) ;
331331
332- // ReactNamespace and jsxFactory information
333- let jsxFactoryEntity : EntityName ;
334-
335332 let resolveModuleNamesWorker : ( moduleNames : string [ ] , containingFile : string ) => ResolvedModuleFull [ ] ;
336333 if ( host . resolveModuleNames ) {
337334 resolveModuleNamesWorker = ( moduleNames , containingFile ) => host . resolveModuleNames ( moduleNames , containingFile ) . map ( resolved => {
@@ -424,8 +421,7 @@ namespace ts {
424421 getFileProcessingDiagnostics : ( ) => fileProcessingDiagnostics ,
425422 getResolvedTypeReferenceDirectives : ( ) => resolvedTypeReferenceDirectives ,
426423 isSourceFileFromExternalLibrary,
427- dropDiagnosticsProducingTypeChecker,
428- getJsxFactoryEntity : ( ) => jsxFactoryEntity
424+ dropDiagnosticsProducingTypeChecker
429425 } ;
430426
431427 verifyCompilerOptions ( ) ;
@@ -731,7 +727,6 @@ namespace ts {
731727 writeFile : writeFileCallback || (
732728 ( fileName , data , writeByteOrderMark , onError , sourceFiles ) => host . writeFile ( fileName , data , writeByteOrderMark , onError , sourceFiles ) ) ,
733729 isEmitBlocked,
734- getJsxFactoryEntity : program . getJsxFactoryEntity ,
735730 } ;
736731 }
737732
@@ -1679,8 +1674,7 @@ namespace ts {
16791674 if ( options . reactNamespace ) {
16801675 programDiagnostics . add ( createCompilerDiagnostic ( Diagnostics . Option_0_cannot_be_specified_with_option_1 , "reactNamespace" , "jsxFactory" ) ) ;
16811676 }
1682- jsxFactoryEntity = parseIsolatedEntityName ( options . jsxFactory , languageVersion ) ;
1683- if ( ! jsxFactoryEntity ) {
1677+ if ( ! parseIsolatedEntityName ( options . jsxFactory , languageVersion ) ) {
16841678 programDiagnostics . add ( createCompilerDiagnostic ( Diagnostics . Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name , options . jsxFactory ) ) ;
16851679 }
16861680 }
0 commit comments